We have a semi-complex webform built using Drupal 7 / Webform 7.x-4.15.
We want to move the "Page Breaks" depending on the URL of the current page (we are showing the webform in a block). We are "moving" page breaks by hiding/showing different page breaks using conditionals and hidden "URL" field that is populated with current page URL.
The current page hidden “URL” field is at the top of the form above the first page break.
We can get the first example to work perfect. When we try and get other options to work, we can no longer see fields that are between the page breaks.
Example 1: example.com/page1 (Hide / Show Page Breaks)
Field 1
Field 2
Page Break1 (Show)
Field 3
Field 4
Page Break2 (Show)
Field 5
Page Break3 (Hide)
Field 6
FINISH
Example 2: example.com/page2 (Hide / Show Page Breaks)
Field 1
Field 2
Page Break1 (Hide)
Field 3
Field 4
Page Break2 (Show)
Field 5
Page Break3 (Hide)
Field 6
FINISH
Example 3: example.com/page3 (Hide All Page Breaks)
Field 1
Field 2
Page Break 1 (Hide)
Field 3
Field 4
Page Break2 (Hide)
Field 5
Page Break 3 (Hide)
Field 6
FINISH
How can we get this to work so we can effectively move page breaks between fields depending on URL of current page?
Cheers,
Dane
I'm a beginner Angular guy and I need some help structuring an application. The part I'm having difficulty with is a categorization system.
The Category model has the fields: title, slug, parent category, image, type. Categories can be of simple type (title only, no image) or full (title and image). Other category types should be possible to create in the future - for example, category with lengthy description and no children. Categories can be automatically expanded (a simple category with subcategories has its children expanded by default) or not (a full category by default is not expanded).
Visually, it should look like the following: a category has a title, and inside it the images and titles of subcategories, like apps look on your phone's home screen:
https://s3.amazonaws.com/ish-archive/2016/bjjcollective/20160215.bjjc-uiux.png
When you click one of those "app"-looking things, that subcategory's title gets added to the hierarchy of titles (so the categorization acts as a tree), and the subsubcategories are shown, as app-looking things.
When you click on the title of a parent directory, the children tree gets replaced with the expanded view of that category's subcategories.
Additionally, each category should have a url associated with it, for example: /categories/houses/kitchen/silverware ( /categories/:slug_0/:slug_1 or /categories/*slugs ? ) should be the page where silverware category is expanded, and its subcategories are shown. The slugs are not unique! So you can have a path like /categories/camping/kitchen/silverware as well, which would be different from "houses" silverware.
The backend API can have any shape that's usable by the frontend. /api/categories.json, /api/categories/houses.json?depth=2, /api/category/houses.json - it's completely flexible.
So I am looking into ui-router and directives to make this happen but I don't see how I should structure my code. To tie views to the url I have to use ui-router, not directives, right? Is recursive views a thing in Angular? And, if each category has a sub-view, how do I restrict rendering of subcategories to only the one relevant subview? I have a pretty solid idea how to do it in jQuery, but how do you do it in Angular?
I have some fields for node. I hide contents and render fields separately as below
hide($content);
print render($content['field_01']);
print render($content['field_02']);
print render($content['field_03']);
print render($content['field_04']);
print render($content['field_05']);
I set different field formats in content type at Manage Display" like field_01 is an image and i set large image in Full Content and Thumb image in Teaser view mode. field_02 is a taxonomy reference field which i set Link in Full Content and Plain Text in Teaser view mode.
When i render fields in node template, all fields render as view mode "Full".
Now i want render all fields from default view mode "Full". Only I want to render field_01 & field_02 from Teaser view mode.
Put your code inside an if like this:
if($view_mode == 'full'){
[...]
}
elseif($view_mode == 'teaser'){
[...]
}
Status :
I created a page by views module.
name - "Culture and Tradition"
path - "culture-and-tradition"
which to display the "Title" and "Body" of the content by content type.
And I created a block name is "Blk Culture and Tradition" which to display the Title of content by views module.
And then I went to the configuration of structure->block->"Blk Culture and Tradition"
and place the culture-and-tradition into the "Only the listed pages"
Problem : The block "Blk Culture and Tradition" is not display when I went to the views's page of "culture-and-tradition".
How do I display a block while on a page which was created by views
I found the solution from here. And remove marking of content type(s).
I have an issue and i'm hoping to get some advise.
I have a view created that show content based on the url:
eg:
domain.com/item/one
Shows fields for my node with the title one
domain.com/item/two
Shows fields for my node with the title two
etc etc.
The path for the PAGE in views is set to /item
What I'm having trouble with is I need to have a BLOCK (becuase I'm making it collapsable) show under that page with the specific URL show the body field for that node.
eg:
domain.com/item/three
Shows fields for my node with the title three as well as a block that show the body field for node three
I have set the Contextual filter for the PAGE to:
Content: Title
When the filter value is NOT in the URL
Show "Page not found"
Exception value : Empty (All removed)
Under More:
Case : Lowercase
Case in path : Lowercase
Transform spaces to dashes in URL : Checked
This works for the page but please let me know if I have set this up incorrectly.
I have set the same Contextual filter for BLOCK and it works in views preview but not on the page with the URL:
domain.com/item/three
Any advise on this would be greatly appreciated.