Hello,
Been using the Structure module successfully for a long time but in this case I’m trying to have a structure-managed entry serve as the site’s home page, and it’s not working.
The entry has a URL title of ‘home’, and I set the structure PageURL to “/”, but when I visit the site’s home page, I just get all the weblog’s entries. Other entries in the weblog work as expected using their structure PageURLs.
Any ideas what I’m doing wrong? I seem to recall that setting the PageURL to “/” is the way to do it, but I can’t find documentation of that anywhere.
Under structure’s settings do you have your homepage setup to use the site/index template? And, is the site/index template set as the site’s default page?
Hello, Been using the Structure module successfully for a long time but in this case I’m trying to have a structure-managed entry serve as the site’s home page, and it’s not working. The entry has a URL title of ‘home’, and I set the structure PageURL to “/”, but when I visit the site’s home page, I just get all the weblog’s entries. Other entries in the weblog work as expected using their structure PageURLs. Any ideas what I’m doing wrong? I seem to recall that setting the PageURL to “/” is the way to do it, but I can’t find documentation of that anywhere.
You don’t set up a homepage in structure, but ee still needs to know what template you wish to use at the “default site” template. So, you set the default site template in the templates, and then point to it in your structure settings.
For example, under the templates tab in the template group site you set index as the default site template. EE will use this template when you go to http://yoursite.com.
Now for the weblog you wish to use for your homepage content, you edit structure’s settings so the weblog uses the site/index template. (attached screenshot)
Assuming your template is coded correctly, when you go to http://yoursite.com it will display the content for your web log.
stphnmartin, What do you mean by this?do you have your homepage setup to use the site/index template?I thought the point was that there’s no place to specify a homepage within Structure, and so the only place to edit is the default “index” template.
You can use any weblog you want, I was just using that for simplicity sake since I don’t know the name of the weblog you’re using.
Can you share a URL, a screenshot of your structure settings or template code?
I understand the way that the default index template works, I guess I’m confused as to why you’re creating an entire weblog (“Homepage”) for just one page.
Here’s a shot from the most current Structure-related site. The only weblog being used right now is Pages, which again house most simple/static layouts all over the site.
I’m not sure how this helps – I’d like to create a page outside of Structure that can be used to edit homepage content, rather than asking a client to edit homepage content via a special one-entry weblog or directly in a template.
It seems like your issue isn’t with structure but with your default site template.
The client will have to enter content somewhere and this is within weblogs with or without custom fields. Your default site template can either pull from a specific homepage weblog, which you don’t want to do, or from any other weblog you have on the site such as Annual Reports, Articles, Case Studies, etc. You just have to code your default site template to do so.
What content do you want to appear on the home page? Can you share your code for the default template?
Here’s a shot from the most current Structure-related site. The only weblog being used right now is Pages, which again house most simple/static layouts all over the site. I’m not sure how this helps – I’d like to create a page outside of Structure that can be used to edit homepage content, rather than asking a client to edit homepage content via a special one-entry weblog or directly in a template.
No, it’s not with the default site template. It’s with designating a Structure-managed weblog entry to consistently be used by the site’s default index template. Same thing that Andrew was asking about, I think.
I understand how ExpressionEngine and the default index template work. I appreciate your willingness to help, but I think we’re missing each other.
Yeah, I’m not getting what you’re asking.
I have a client that uses structure to manage the content on their homepage. The weblog is called homepage and I’ve assigned it to the site/index template. That template pulls the photos, text and links from the custom fields in the weblog to populate the homepage.
To update the homepage the client either edits the existing weblog entry, or creates a new one to replace it.
In the template I limit the entries to 1.
This sounds like what you’re after. But, I’m not really sure.
Hope you can find an answer.
No, it’s not with the default site template. It’s with designating a Structure-managed weblog entry to consistently be used by the site’s default index template. Same thing that Andrew was asking about, I think. I understand how ExpressionEngine and the default index template work. I appreciate your willingness to help, but I think we’re missing each other.
I don’t know if this this will help clear things up, but I upgraded to the current version of structure (2.1.1 i think) and now the it is behaving as expected - for the page I want to be the ‘home page’, I just set the structure URL to “/”. I also have the standard URL rewriting set up in .htaccess .
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.