I have been playing around with the different possible structures but would anyone else like to share how they do this?
I've tried:
Content
- Home
-- About
-- Contact
-- Portfolio
--- PortflioItem1
--- PortflioItem2
and
Content
-Sitename (with a redirect to Home so you dont get a blank page 'www.mysite.com/Sitename' and global values - could be changed to 'en' if site went multilingual)
-- Home
-- About
-- Contact
-- Portfolio
--- PortflioItem1
--- PortflioItem2
This second method makes more sense to me and makes my navigation work as it should including the homepage link. That is something I don't think you should have to hack your way around.
Are there any general 'rules' on how to structure a website? I just want to keep in good practice from the beginning :) thanks in advance.
I know it's simple enough to get the homepage but logically speaking I don't see about, or services, or contact as sub pages of the homepage. Wouldn't this make more sense:
Content
- Home
- About
- Contact
- Portfolio
-- PortflioItem1
-- PortflioItem2
The navigation doesn't work exactly out of the box though does it, you would need some knowledge of xslt to manually add the homepage, which you would expect to appear in a main navigation for any site. When I first used umbraco, the first thing I said to myslef out loud (as you do...) when I made my navigation "where's the homepage link?!" - lol.
How to structure the content tree
Hi everyone,
I have been playing around with the different possible structures but would anyone else like to share how they do this?
I've tried:
Content
- Home
-- About
-- Contact
-- Portfolio
--- PortflioItem1
--- PortflioItem2
and
Content
-Sitename (with a redirect to Home so you dont get a blank page 'www.mysite.com/Sitename' and global values - could be changed to 'en' if site went multilingual)
-- Home
-- About
-- Contact
-- Portfolio
--- PortflioItem1
--- PortflioItem2
This second method makes more sense to me and makes my navigation work as it should including the homepage link. That is something I don't think you should have to hack your way around.
Are there any general 'rules' on how to structure a website? I just want to keep in good practice from the beginning :) thanks in advance.
Sam.
Hey,
The first one for sure! The navigation xslt will work out the box and adding the homepage is a breeze.
To get the homepage just add this
<li>
<xsl:if test="$currentPage/@level=1">
<xsl:attribute name="class">active</xsl:attribute>
</xsl:if>
<a href="/">
<span><xsl:value-of select="$currentPage/ancestor-or-self::*/@nodeName"/></span>
</a>
</li>
If you go with the 2nd route, it'll cause you many a headache.
Rich
Thanks Rich,
I know it's simple enough to get the homepage but logically speaking I don't see about, or services, or contact as sub pages of the homepage. Wouldn't this make more sense:
Content
- Home
- About
- Contact
- Portfolio
-- PortflioItem1
-- PortflioItem2
The navigation doesn't work exactly out of the box though does it, you would need some knowledge of xslt to manually add the homepage, which you would expect to appear in a main navigation for any site. When I first used umbraco, the first thing I said to myslef out loud (as you do...) when I made my navigation "where's the homepage link?!" - lol.
Sam.
Hey Sam,
I'm sure someone explain the reason better than me however I've never seen an Umbraco website structured how you have it above.
It's a common question but the answer is always the same :)
Rich
Thanks Rich,
Just one more...
Wouldn't multilingual sites be structured as my second example in the first post? www.site.com/en/ and www.site.com/fr/ or www.site.com/de/
Sam.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.