assign template to Joomla articles and FlexiContent items without menu - joomla3.0

I want to assign a template style to a category articles in joomla3. FLEXIcontent items Indeed.
I have a cooking category and I want it's items to have different Template Style.
* I have many items in this category and I can't make menu for all of them.

If you group articles into a category and you made a menu item for that (like blog category layout - and select the grupped articles category) then you can assign different template.
You dont have to show this menu item on frontpage. And every article what you grupped into that category will use the template selected in the menu item.

Related

Binding a dictionary to tabs control with list box inside in wpf

I need to create tab control when on each tab there is a list box with related items.
e.g:
What would be the best way to build it dynamically?
TX
As per my understanding. You can put 3 category for tab headers and add the each list box items as sub category. query the collection for related of tab headers.
EX:
Category :
1. Food
2. Book
3. Car
Sub Category:
1(Food):
1. Egg
2. Meat
3. Milk
etc..........

Cachephp 3, options list from table in each page

I'm using Cakephp 3.0. I want to show a checkboxes filter for categories in a menu present in each page with an icon as label.
I have a table (model) "category" with id, name, icon, etc. I want to take these fields in a form in the menu, but I do not want to repeat the query in each method of each controller to pass the variable.
I thought to make the query in the view or in a helper, but I did not find the way.
How would you proceed?
Thank you

How to edit layout of category?

How can I edit the layout of category.
I am unable to find the solution. I need to edit it via Control Panel, not using direct file editing.
To edit the layout of category, Edit the menu item that is linked to that category. In the menu item edit page, you will find all the option for changing category layout.
Also you can change the Global options in Content > Categories page then click on the options button to see all category options.

Angular active menu item but not related to routing

My Angular app teaches kids how to cook. The main screen of the app is a kitchen.
On the left, the user can select a food category of the ingredient they want to add. Then, in the next column, they can select the specific food.
So for example, if they want to see all the spices, they click "Spices" and then drag the exact spice into the pot.
My question is, how can I get the "Spices" button to be highlighted while it is in use?
I've seen some similar questions but they are all related to routing. This is not related to routing (i.e. the page is not changing)
Use ng-class to toggle some sort of 'selected' class based on what is unique about your data when you click on that particular menu item. It could look something like this:
<a ng-click="items = spices" ng-class="{selected: (items === spices)}">Spices</a>
Then you just need to create a style for your .selected items.

Drupal 7 - Entity Reference - Display only items related to node that is related to another node

I have 3 Content Types: Restaurant, Menu, and Menu Item.
I've set up my Restaurant content type so that when a 'Restaurant' is created I have the ability to create a Menu with Menu Items, using the Entity Reference and Inline Entity Form modules. This is all working well.
The part I can't get to work is to display the Menu items correctly in the 'Restaurant' page.
I created a Menu View block, where I added Menu Item fields, and filter it by Content Type 'Menu Items'.
When I place this block in my restaurant page, I see all menu items being displayed...
How can I display only the Menu Items that are related to the Menu content type that related to the Restaurant being viewed?
Edit:
In my 'Restaurant' content type I created a field_menu which is an Entity Reference to the Menu content type, and I use the Inline Entity Form module to allow the creation of 'Menu' entities within the 'Restaurant' creation page.
Similarly, in my 'Menu' content type I have a field_menu_item which is and Entity Reference to the Menu Item content type.
In that case you should add the relationship between menu items and restaurants in order to access the field menu in the menu items view. You can do this in the Advanced area relationships and add the entity references that you need. In your case you should add the menu referencing field and the restaurant referencing field. They should appear similar to
Entity Reference: Referencing entity
A bridge to the Content entity that is referencing Content via menu_item_field
All the above should result in the appearance of the menu field in the filters of the view. When the menu field will be accessible in the filter of the block view you should add a contextual filter for that field.
Then in your contextual filter in the "When the filter value is NOT in the URL" area select "Provide default value" and Type "PHP code" (You should have enable php filter for this). In your php code area you should have the following code
$node=menu_get_object();
return $node->field_your_machine_field_name['und'][0]['target_id']; // this is the field you will use for filttering.It should be the menu field in the restaurant content type
Hope i didn't confuse you. It's not a simple task though.

Resources