We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Pages Bug Thread

Development and Programming

Thorvald's avatar
Thorvald
10 posts
18 years ago
Thorvald's avatar Thorvald

Hi there, SM9. You can’t use category names in your templates. The reason is that if you or someone else decides to change a category name then you’d have to go change every single template. So, what you have to do is go find the id number for the category you want to see. Look in Weblog Administration › Category Groups › Category Management at the first field in the table. That’s the number you want to put into your template, something like

{exp:weblog:entries category="6"}

Hope this helps.

EDIT:

Ah, now I see that this is in the Pages Module thread. Eh, that’ll teach me to not look at which tab I’m viewing.

What I wrote before still holds in general, but Pages gives you another way to (dynamically!) get that id number, by using a global variable. Your code should look like

{exp:weblog:entries category="{static_page}"}
       
Fernando Bernall's avatar
Fernando Bernall
58 posts
18 years ago
Fernando Bernall's avatar Fernando Bernall

I’ve been using this module for a while and it has served my needs very well. I thank you.

Now I’m trying to figure out how to extend a long article on my static pages weblog across several pages.

I’ve create several custom fields such as page 1| page 2| and so on. I have added content on those fields.

I’ve included the following on my weblog entries tag:

{exp:weblog:entries category="{static_page}" dynamic="off"  paginate_type="field" paginate="bottom"}
{title}    
{summary}
{body}

{multi_field="page1|page2|page3|page4"}

{paginate}
Page {current_page} of {total_pages} pages for this article {pagination_links}
{/paginate}


   {/exp:weblog:entries}

When I view the page It only shows what I placed on the summary but not on the custom fields I created..

Any help would be appreciated

Thanks in advance,

Fernando

       
George Ornbo's avatar
George Ornbo
272 posts
18 years ago
George Ornbo's avatar George Ornbo

Hi there,

Firstly and most importantly A BIG THANKYOU for the pages module. It is an amazing addition to EE and I am really grateful for this.

I am successfully using {exp:static_page_path} to generate lovely three level navigation within my static pages. Woo hoo!

I have some dynamic static pages like Press Releases that list out Press Releases (title and summary). Clicking the title it takes me to a single entry template to view the full story. All working well apart from the navigation.

As documented {exp:static_page_path} does not work. I wondered if there is a clever workaround for this or do you just to hard code the navigation on single entry pages?

Again thanks for your work!

       
Brian Bommarito's avatar
Brian Bommarito
11 posts
18 years ago
Brian Bommarito's avatar Brian Bommarito

Okay, hopefully someone can help me out.

I have Pages installed, the 3.6 right now with the most recent version of Expression Engine.

Everything seems to work, but there is a problem. When I go to a static page, I get the index page for the site, as opposed to the template that was created for the static pages themselves.

This is what I have in the template (This is only a test template to get it working):

{exp:weblog:entries weblog="static" category="{static_pages}” dynamic=”off”} {body} {/exp:weblog:entries}

I have pages setup to use the static weblog and that index template. What am I doing wrong? Or is there a problem with the install?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Brian, have you enabled the extension? What does your category structure look like? What template did you choose for the default? Do you have any overrides set?

       
bjsteiger's avatar
bjsteiger
87 posts
18 years ago
bjsteiger's avatar bjsteiger

I’m having what seems like a simple problem but I can’t get certain content to display:

My structure looks like:

|____ About
|
|_______ History
|
|_______ Beliefs
|
|_______ Our Team (Dynamic)

I setup a weblog that is called “pages” along with a category group called “pages”. The only difference is I set the Our Team section to the Weblog to “Our Team”. Our team is designed to allow for multiple team members.

Here is the code for my template (about/index):

{exp:weblog:entries category="{static_page}" dynamic="off" cache="yes" refresh="300" disable="member_data|pagination|trackbacks"}
<h2 class="title-main"><span>{title}</span></h2>
{pages_body}
{/exp:weblog:entries}

When I go to http://www.domain.com/about/our_team I get a blank page, however if I go to http://www.domain.com/about/beliefs this works.

In the Pages configuration I made sure Our Team (in pages configuration) is set to about/index and then checked “Dynamic”

What else am I missing here. I know it must be something simple

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

hum. and what’s in your about/index template? could you zip it up and attach it?

       
bjsteiger's avatar
bjsteiger
87 posts
18 years ago
bjsteiger's avatar bjsteiger

Here you go

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

that’s pretty slim and doesn’t appear to have any problems. can you try taking everything out of the template and just place some static text, maybe “Hello, World!” and see if that get’s output. Also be sure to check all your tags contain ‘straight’ quotes, not curly.

       
bjsteiger's avatar
bjsteiger
87 posts
18 years ago
bjsteiger's avatar bjsteiger

I just did as you requested with no change. Its a pretty simple site.

       
bjsteiger's avatar
bjsteiger
87 posts
18 years ago
bjsteiger's avatar bjsteiger

Mark,

Here’s another strange question – we just posted this site: http://www.worshipleaderinsights.com and we were using the Pages module on the Newsletter, About, Contact page - however this morning it just stopped working. I made sure that the module and extensions were on - yep!

Basically I built in a regular exp tag (to normally call a weblog) and that worked, but the static content call didn’t. Its like the system is ignoring the category in the URL.

I checked and we are not using any Override Template (by the way, what does this do).

But we can’t get these sections to use the Pages standard exp call

bjs

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

make sure you have dynamic="off" on all your static page entry tags. other than that if you’d like to PM me a link to your CP i’d be happy to peak at worshipleaderinsights.com and see what’s going on.

As for your white page, is there anyway you could also PM me a link to that CP? I’m not sure what’s causing this. Can you turn on template debugging under Admin » System Pref » Output and Debugging? Does it appear on that white page?

       
bjsteiger's avatar
bjsteiger
87 posts
18 years ago
bjsteiger's avatar bjsteiger

Mark - I PM’d you 😊

       
Gabriel's avatar
Gabriel
130 posts
18 years ago
Gabriel's avatar Gabriel

Hello,

Mark, thanks for great collections modules & plugins.

I want to create “Edit link” on each static page, which will be follow directly to entry.

<a href="http://{homepage}/system/index.php?C=edit&M=edit_entry&weblog_id=1&entry_id=entry_id}">Edit page</a>

There is needed “entry_id”. How to extract this parameter? Can you help me?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

@bjsteiger - I think the problem is your Page’s page has the same url as a physical template (/about/index/). In this case EE will show you the physical template, which won’t have {static_page} populated. If you check off ‘override’ in the configuration it will tell EE to use the Page’s page even if a physical template exists in it’s place. Give that a try and let me know what happens.

@Gabriel - hum, to do this you would just want to place that link inside of a standard entries tag:

{exp:weblog:entries dynamic="off" category="{static_page}"}...{/exp:weblog:entries}

Then your link should take the entry_id of the static page’s entry.

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.