I'm creating a site with various navigation categories, and I've hit a wall. Any help is appreciated.
I need to list pages as niceURLs according to the category they belong. The user must have the abilty to create a page by category. I thought of passing parameters from a macro, but perhaps it's simpler and cleaner to create a dummy page for each category and nest subpages under each to be iterated in four menus?
Category One - Page one - Page two
Category Two - Page one - Page two
... and so on.
Then address each category and iterate the subpages ONLY, hiding the category page.
Any ideas on how to do this in one or several xslt files.
When I say "user", I'm referring to content editors. They need to create a page according to a category. This is to assure the page is displayed under the proper menu. I've also created a Data Type to insure they can choose a categoy and the proper style (backgrounds, color) is applied to the page upon browser rendering.
I need to figure out a way they can create a page and insure the URL is written to one of four menus.
The content editors will be creating page(s) under a category, therefore you know that those pages belong to that category.
What you're looking to achieve is straight forward, so I don't think you need to over complicate it.
If you create the following structure:
Category 1
- Content page 1
- Content page 2
Category 2
- Content Page A
- Content Page B
Then create a new xslt file and choose the 'Site Map' template, you will have most of what you need already. The urls will already be correct and the site map xlst will give you a great start in rendering the menu.
We seem to be on the same page. I suppose I should be more explicit and ask, how?
I'm relatively green at xslt, and although I have scripts for simple topNode menus, level menus and such, I do not know how to differentiat by nodeID, nodeName or the like. I need some help getting started with the xslt ;-)
Then create a new xslt file and choose the 'Site Map' template, you will have most of what you need already. The urls will already be correct and the site map xlst will give you a great start in rendering the menu."
Do you mean you don't know how to do the above, do you have a problem inserting a macro?
Creating the xslt file and macro are not a problem. I am simply not certain how to address the various categories once I have the file xslt created. I am assuming I need to call on the category on list ONLY those subpages in a particular menu. I have never created a site map xslt, but I assume it will need some tweaking, and that's weher I am stumped. What to address once I have the site map in place: nodeID, pageID, parent level?
I understand, and appreciate it. I was just thinking I could get some feedback on a general level. I'll get something put together, post it, and we can take it from there.
I've created a rough site structure with at least one page under each of the 4 categories. There is a file outside these categories, as some of the pages will be created manually in a fifth menu. I've also created a sitemap XSLT. I have no idea where to begin now, so any help is GREATLY appreciated. The grey area in the photo is the site in question. This is a multisite installation, so the other nodes above are containers for the other sites.
List pages by category
Hi,
I'm creating a site with various navigation categories, and I've hit a wall. Any help is appreciated.
I need to list pages as niceURLs according to the category they belong. The user must have the abilty to create a page by category. I thought of passing parameters from a macro, but perhaps it's simpler and cleaner to create a dummy page for each category and nest subpages under each to be iterated in four menus?
Category One
- Page one
- Page two
Category Two
- Page one
- Page two
... and so on.
Then address each category and iterate the subpages ONLY, hiding the category page.
Any ideas on how to do this in one or several xslt files.
Hey,
I'm not 100% sure what you're asking but my gut feeling is that your revised structure is correct.
On the Category One template page you can add a macro so that if a user lands on it they get redirected to the first page (Page One)
Make sense?
Rich
Hi Rich,
When I say "user", I'm referring to content editors. They need to create a page according to a category. This is to assure the page is displayed under the proper menu. I've also created a Data Type to insure they can choose a categoy and the proper style (backgrounds, color) is applied to the page upon browser rendering.
I need to figure out a way they can create a page and insure the URL is written to one of four menus.
Hey Dwayne,
I understand.
The content editors will be creating page(s) under a category, therefore you know that those pages belong to that category.
What you're looking to achieve is straight forward, so I don't think you need to over complicate it.
If you create the following structure:
Category 1
- Content page 1
- Content page 2
Category 2
- Content Page A
- Content Page B
Then create a new xslt file and choose the 'Site Map' template, you will have most of what you need already. The urls will already be correct and the site map xlst will give you a great start in rendering the menu.
Rich
We seem to be on the same page. I suppose I should be more explicit and ask, how?
I'm relatively green at xslt, and although I have scripts for simple topNode menus, level menus and such, I do not know how to differentiat by nodeID, nodeName or the like. I need some help getting started with the xslt ;-)
Did you try the site map xslt template?
Rich
Never tried it. Will that get me started or solve the issue?
It's certainly a good start.
Rich
No idea where to begin. Thanks anyway.
Hey,
Did you read this:
"If you create the following structure:
Category 1
- Content page 1
- Content page 2
Category 2
- Content Page A
- Content Page B
Then create a new xslt file and choose the 'Site Map' template, you will have most of what you need already. The urls will already be correct and the site map xlst will give you a great start in rendering the menu."
Do you mean you don't know how to do the above, do you have a problem inserting a macro?
Rich
Creating the xslt file and macro are not a problem. I am simply not certain how to address the various categories once I have the file xslt created. I am assuming I need to call on the category on list ONLY those subpages in a particular menu. I have never created a site map xslt, but I assume it will need some tweaking, and that's weher I am stumped. What to address once I have the site map in place: nodeID, pageID, parent level?
Does that make sense?
Hey Dwayne,
It would be helpful if you created the site map as described and then post the output here, or post an image of your content structure.
I'm doing my best to help you!
Rich
I understand, and appreciate it. I was just thinking I could get some feedback on a general level. I'll get something put together, post it, and we can take it from there.
Hi again
I've created a rough site structure with at least one page under each of the 4 categories. There is a file outside these categories, as some of the pages will be created manually in a fifth menu. I've also created a sitemap XSLT. I have no idea where to begin now, so any help is GREATLY appreciated. The grey area in the photo is the site in question. This is a multisite installation, so the other nodes above are containers for the other sites.
Here's the sitemap XSLT
is working on a reply...