26 of 27
26
Tome (Static Pages)
Posted: 29 March 2007 12:04 AM   [ Ignore ]   [ # 451 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

Please find the screenshots of the site as per the above problem!

PS. Any idea how I can embed an ID into each li when I’m generating the navigation for the above problem?

Image Attachments
From Pages Tab.pngURL Direct.png
Click thumbnail to see full-size image
 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 03:36 AM   [ Ignore ]   [ # 452 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  01-17-2007

I am DESPERATE! Please can someone help me.

I have a Category called “news” to list the all the news articles. I want to be able to link the news articles to a detail page but I cannot get the subcategory I have created called “detail” to pull the relevant news article using something like below:

mysite.com/index.php/news/detail/article_title

The article title isn’t changing what content is displayed in the “detail” page.

This step or an alternative to getting this to work within Pages is crucial for me.

Profile
 
 
Posted: 29 March 2007 05:00 AM   [ Ignore ]   [ # 453 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  01-14-2006

sorry it’s late and this might be totally wrong and not make a lot of sense at the same time - but I use the pages code to generate the news page intoduction text, but don’t actually use the pages module for the list of articles on the news page and detail page. I use regular ee code for those.
The ‘make dynamic function’, basically is a way of making editing information easier:
for example, on Pages, you can see: “news (5 entries)”
clicking on ‘news’, would let the user edit the ‘static’ part of the news page, ie the introduction content. Clicking on (5 entries) would pull up the edit page of ee with all those entries (a huge convenience for not so savvy clients).
users would publish new news via the regular publish tab and selecting the news weblog.
You shouldn’t get carried away with Pages and forget the power of the regular weblog tag - kapeesh?...

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 29 March 2007 05:57 AM   [ Ignore ]   [ # 454 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  01-17-2007

Thanks Iain.

I see. That makes better sense now.

So Pages doesn’t work like conventional templates, which means that here isn’t a chance of “site.com/index.php/news/detail/dynamic_newsitem1”.

I find mixing the two a bit problematic when using it in such a scenario as you descibed. I would need to maintain two different menu’s, one for conventional weblog categories and another for Pages. Just worries me a bit doing it that way. If there isn’t another way I guess I don’t have a choice at this stage.

Pages shouldn’t be used for complex sites in my opinion then. But I love this module :-(

Anyway thanks for the info.

Profile
 
 
Posted: 29 March 2007 06:19 AM   [ Ignore ]   [ # 455 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  01-14-2006

I would use the url site.com/index.php/news_detail/dynamic_newsitemx linked from the list of entries on /news.

Your news items presumably would need to have their own categry group though anyway right? Are you assigning the same category group as your pages to your news weblog?

as for navigation i use a dirty method. I create a configured Page called NAV on the top level with a custom template - usually includes/NAV. Because my top level nav items are always hard coded and i make use of page=“x” within the menu, the NAV page won’t display on the menu as a page…

I then drop the menu/NAV template into any template i want using the embed tag.
EDIT: You might not want to take my word for gospel on this module, I’m just explaining the way I do it, probably one of many possible.

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 29 March 2007 06:40 AM   [ Ignore ]   [ # 456 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

What’s happened to Mark? He hasn’t replied to any posts here recently.

Can anyone help me?

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 07:25 AM   [ Ignore ]   [ # 457 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  01-14-2006

@stinhambo

for a menu as simple as what your screenshots look like - 4 menu items, would it not be easier just to hardcode the submenu in an include?

refer to the post above for the problems with your home page navigation,  i should have said

“then drop the menu/NAV template into any template(including the home page) using the embed tag.”

With the home page issue, normally home pages use a different template from internal content pages(right?), so why not use a normal {exp:weblog:entries entry_id=“x”... for inserting the content from the ‘home’ page into the template.
In my opinion, a home page should only have a small area of static, editable content, and the rest of the page is produced dynamically by what’s been added recently, or featured etc etc..

hope this helps.

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 29 March 2007 09:02 AM   [ Ignore ]   [ # 458 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

Yes I am using a different template, weblog and custom field group but I have associated it with the ‘Pages Module’ category called ‘Home’.

It is still a mystery as to why the template doesn’t pick up

{exp:static_page_path direction="post" page="9" backspace="3"}<a href="{url_title}" title="{title}">{title}</a>{/exp:static_page_path}

Yet it does if I click on ‘Home’ in the category tree.


How the hell do I get the home category to come up if I type in the url directly without the /index.php/etc/etc?

Also I still get my static content weblog coming up if I hover over ‘Edit’

UPDATE:

I hardcoded this into my homepage index -

<ul>
<
li id="intro-button-entry"><a href="/index.php/services/entry_level_resume">entry level resumes</a></li>
<
li id="intro-button-pro"><a href="/index.php/services/professional_resume">professional resumes</a></li>
<
li id="intro-button-managerial"><a href="/index.php/services/managerial_resume">managerial resumes</a></li>
<
li id="intro-button-it" class="last"><a href="/index.php/services/i_t_resume">IT resumes</a></li>
</
ul>

and it works a treat smile

I’d still like a fix for my problem as I might in the future have text links and the pages module could auto generate new navigation items if the client created a new category then published new content…

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 10:28 AM   [ Ignore ]   [ # 459 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

This problem also means that I can’t use

{exp:static_page_path direction="post" page="0"  depth="1"}

on my homepage.

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 06:12 PM   [ Ignore ]   [ # 460 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  01-17-2007

@Iain

Thanks for that info. Have hard coded the top level menus so that will work fine for me. If only the Pages module tags worked throughout the system…

The embed doesn’t parse for some reason on normal pages. Maybe because I’m using the wrong url for the embed. It does work when called from one of the Pages pages. I am using:

{embed="includes"}

Thoughts?

Profile
 
 
Posted: 29 March 2007 06:21 PM   [ Ignore ]   [ # 461 ]  
Grad Student
Avatar
Rank
Total Posts:  52
Joined  01-17-2007

@stinhambo

another way of getting around the index page problem is by putting a redirect script into the index page that points to a static page called home or whatever. Here’s some php code to do it. You will need to have php parsing enabled on your index template.

<?php
header
("Location: /ee/index.php/home"); /* Redirect browser */
exit;
?>

Hope this helps.

Profile
 
 
Posted: 29 March 2007 09:01 PM   [ Ignore ]   [ # 462 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

Is that how everyone else does it with the pages module?

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 09:10 PM   [ Ignore ]   [ # 463 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  01-14-2006

you could always use an include instead of an embed, that’s one way:

<?php include '/url/to/index.php/nav'; ?>

if you have the nav generator on your list of pages, hit the ‘view’ link to get the Pages url. Make sure you enable php though.
see screenshots attached.

EDIT: suppose i should post the code in NAV too,

<ul id="Menu1" class="MM">
  <
li><a href="index.php/about_okahu">About Okahu</a>
    
{exp:static_page_path direction="post" page="5"}<a href="{url_title}" title="{title}">{title}</a>{/exp:static_page_path}
  
</li>
  <
li><a href="index.php/the_wines">The Wines</a>
    
{exp:static_page_path direction="post" page="6"}<a href="{url_title}" title="{title}">{title}</a>{/exp:static_page_path}
  
</li>
  <
li><a href="index.php/vineyard_accommodation">Vineyard Accommodation</a></li>
  <
li><a href="index.php/news">News from Okahu</a></li>
  <
li><a href="index.php/contact_location">Contact / Location</a></li>
</
ul>

{!--
TOP LEVEL ITEMS ARE HARD CODED INTO THE TEMPLATE, PAGES MODULE TAKES CARE OF REST.
--
}


And a screenshot of how admin users see the Pages, and a shot of how they are configured too.

Image Attachments
Pages.pngconfigure.png
Click thumbnail to see full-size image
 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 29 March 2007 09:17 PM   [ Ignore ]   [ # 464 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

So am I write in thinking that I have to -

[list]
* Create a weblog called ‘pages’ for example
* Use this as the basis for all my pages (basically use it to store the page title)
* Create multiple templates to drag in content from other weblogs
* Go to each page on the category tree and assign their respective templates assign the ‘pages’ weblog to all

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 09:20 PM   [ Ignore ]   [ # 465 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  01-14-2006

I’ve just edited my post above to include a screenshot of my ‘cofigure pages’ setup and the code i use to generate the navigation accross the site.

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 29 March 2007 10:05 PM   [ Ignore ]   [ # 466 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

Cheers iain! I think we need more practical examples like that to demonstrate how it can or should be done with this module.

Oh and thank you too Kenny!

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 29 March 2007 10:25 PM   [ Ignore ]   [ # 467 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  235
Joined  01-14-2006

yeah, i was about to start typing a long walkthrough that didn’t make much sense,
 
there’s also this and this straight from the horses mouth (so to speak).

Iain.

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 29 March 2007 10:57 PM   [ Ignore ]   [ # 468 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1615
Joined  01-05-2007

Yeah I got that tutorial but it doesn’t say any more than your great wiki entry to be honest.

What you and Kenny have posted is far more valuable smile

Now if anyone wanted to do a screencast. I’d do one myself if I knew what I was doing here. But when I do!

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
   
26 of 27
26
 
‹‹ Solspace Tag Cloud      Files Module ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66475 Total Logged-in Users: 45
Total Topics: 84879 Total Anonymous Users: 26
Total Replies: 455407 Total Guests: 214
Total Posts: 540286    
Members ( View Memberlist )