I have a multilevel menu. I need it so that if the user clicks on a top level menu, they are taken to one of their children.
For example..
- Products (top level)
-->Product 1 (sub)
-->Product 2 (sub)
-->Product 3 (sub)
I need to set it up so that if the user clicks on "Products", it opens "Product 1" instead of Products?
Any suggestions on how I could do this? I'm sure it could be done, but I just can't find anything on it, nor work it out..
Many Thanks in advance.
I'm loving Mura more each day. Thanks to CatherineMM at the Mura Forums for the most simple way to achieve this:
"If you add "Go to First Child" (under System) in the Display Objects for Products, you should be all set!".
To do what my questions asks:
The top level Menu item (Products).
Go to "Layout & Objects".
Under 'Content Objects" select "System".
Then "Go to first child" and move into main content area.
That's it.. then when I click 'Products', it just opens 'Product1'.
If this menu is query driven, you might be able to use the group attribute of cfoutput. Something like this:
<cfoutput query="yourquery" group="TopLevel">
#TopLevel"
<cfoutput>
#NextLevel"
</cfoutput>
</cfoutput>
The group level and the first ungrouped level will be reading the same record in your query.
Related
I have to create a custom page for only one product with declinations, so I have created "product-158.tpl" file with a new hook for a new module. (158 is the ID of the targeted product)
The page works well when the product is not to complicated to select, but if I need declinations as color or size, the new layout is replaced by classic product.tpl version and every customed things desapeared. The problem comes when the hidden "refresh" button is trigged and the "add-to-cart-or-refresh" form is submitted. If I erase the hidden button, I can select what I need to select, the cart recognise my order, I can buy the right declination, but If I click the "continue shopping" button, the same problem is displayed.
The problem comes when url change, maybe because of the new ID of the product, I really don't know. I'm searching from two month.
Thanks a lot to who will help me.
Why not park the base tpl, and call your hooks, and apply only changes that the product ID is 158?
Regards
Here's my use case:
I'd like to display the information about something first using django_tables2, with a button on the top right corner called "Edit", once a user hits "Edit", at the bottom of the table, display a button called "Add New Record", and once the user clicks that button, a bunch of input fields pop up to let users enter values for each field, also the user could continue to click "Add new Record" to keep adding new.
How can I achieve this in Django?
I've read a lot of examples on stackoverflow but didn't find anything tailored to this particular case.
Thanks a lot.
Let's dive right into listing out what you want to do and the requirements you'll need to do so.
You basically want to toggle hiding and showing some functionality for this web page. This is easily accomplished by including the "Edit" button, "Add New Record" button, and popup (most likely in its own <div> somewhere in the page). So the "Edit" button will have the display set to something, be it inline, block, etc., while the "Add New Record" and popup would have a display of "none" or however it is you wish to hide it.
You've got the stuff set up and ready to go but now you need to show it when you click the "Edit" button. This is generally accomplished through Javascript. Just find the "Add New Record" button and switch the visibility.
When you click on the "Add" button you want to display a popup. This can be done in a variety of ways with different libraries. One of my personal favorites is using jquery's blockUI. Why? It doesn't allow the user to click anywhere except in the popup so it's a quick way to handle users trying to reach outside the scope of the popup.
So you've got all the new rows added and you are done editing. Maybe you have a "Save" button or something like that where you can click. When you do, you'll want to push all those new rows you just added to the database. Django handles this well and you could do something like include the new rows in part of the POST request or however you care to implement this solution.
So there's a bit of work ahead of you to get this page up and running with the exact functionality you need but hopefully this starts steering you in the right direction of where you need to go.
I asked a series of questions in a post last week, and the person who answered very wisely suggested that I split it into separate questions. I have added a CMF action for folders called "Remote Publish". The button now shows up when viewing the "Content" tab for all folders. How would one now add the logic to do something as simple as writing the titles of the selected items to a log when the button is clicked? Ultimately I will have the selected items share their titles with a web service that I have written, but I am thinking baby steps :D Any help is appreciated.
The simplest thing you can do is: copy what other button are doing!
For example: copy the CMF skin script name folder_delete.cpy. You'll see that paths parameter if loaded from the REQUEST.
I've just had my website migrated from Joomla 1.5 to 2.5, however, I am struggling with the menus. This might be because of my choice of template.
The website is using the bizglobal 1.7 template. The problem is the top menu: I can set up various menus and submenus, but I want all the menu items to be available. For example, if I select the first top level item then all the ones below are immediately available. But the remaining top level items don't show their children unless I click on the parent menu item - whereupon the original children don't drop down. Pictures are better than words, so please have a look at http://www.simsig.co.uk with the green top menu (currently SimSig and Forum).
Many thanks.
In the module manager look for the module that's displaying your main menu, it should be type menu.
Is the show sub items marked to yes?
I have a menu created in ASP.NET master page. I have implemented CSS properties to menu items like hover and link, but I am not able to implement the properties for changing the color of the selected item in the menu.
Do I need to write any JavaScript or jQuery code for identifying the selected item in the menu? Please help me, as I am new to this type of menu items.
if you mean that you want to change the color of a menu item persistently (like, say, the current page tab of a navigation menu is always some particular color), you can do this in ASP by adding a class or id attribute to the menu item when it is clicked. I'm not an ASP kind of guy, but in PHP, you can do it by doing something like:
<li>page #n</li>
and then when the page in question is loaded, the navigation code should say something like:
if $_GET[page]=n then echo " class=\"selected\"" into the anchor tag.
know what i mean? I didn't type out the code for the above if statement because I'm pretty sure ASP is a little different from PHP, and you would have to translate anyway, but I hope this is helpful.
Andy
Edit: ## Here's my ASP guesswork after a brief encounter with google: ##
<li
<%
if Request.QueryString("page")==n Then
Response.Write(" class=\"selected\"")
%>
>Page #n</li>