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

Brent Cartier's avatar
Brent Cartier
87 posts
18 years ago
Brent Cartier's avatar Brent Cartier

Solved! Iain, thanks a million - you were absolutely right! It turns out that I had a few old entries in the weblog I’m using for the Tome module that weren’t assigned to a category. I deleted them and it works great, (regardless where the menu appears in the code 😜 )

I guess it was throwing off an ‘entries count’ somewhere in the module/plugin.

       
Big Skillet's avatar
Big Skillet
364 posts
about 18 years ago
Big Skillet's avatar Big Skillet

I have successfully set up a site by using

{exp:weblog:entries weblog="developers"}

, but have yet to get it to work with the “category” tag everyone is talking about.

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

What could I be doing wrong? Everything works just fine…. I just have to use “weblog” instead of “category”.

Thanks!

       
iain's avatar
iain
317 posts
about 18 years ago
iain's avatar iain

earph, looks like they’ve moved the wiki docs for the module.

its now here:

http://expressionengine.com/wiki/Tome_Module/

mark, can you could update your first post link please.

       
Big Skillet's avatar
Big Skillet
364 posts
about 18 years ago
Big Skillet's avatar Big Skillet

Ah thanks…. this should help. I’ll check it out.

       
Brent Cartier's avatar
Brent Cartier
87 posts
about 18 years ago
Brent Cartier's avatar Brent Cartier

earph: weblog=”developers” is a required parameter for the weblog:entries tag. Also in normal usage, the category parameter only accepts a category id (a number).

Docs:// Category Parameter

Note also that a weblog entries tag will filter the entries by a category that appears in the URL.

Docs:// Understanding EE URLs

The code mentioned above in this thread is specific to a plugin for Mark Huot’s Tome Module.

Hope that helps…

       
Brent Cartier's avatar
Brent Cartier
87 posts
about 18 years ago
Brent Cartier's avatar Brent Cartier

oops, I guess I misunderstood the trouble you were having…

       
iain's avatar
iain
317 posts
about 18 years ago
iain's avatar iain

maybe i did too… earph, you are having trouble with the Tome module right? not the new Pages module included in ee 1.6

perhaps this thread title should be renamed…

       
Big Skillet's avatar
Big Skillet
364 posts
about 18 years ago
Big Skillet's avatar Big Skillet

Yes, I’m using the Tome module, not the new “Pages” module.

       
James Smith's avatar
James Smith
259 posts
about 18 years ago
James Smith's avatar James Smith

Hi folks,

Apologies if I’m missing something obvious, I’m quite new to EE. Any help greatly appreciated.

I’m having trouble getting the Tome module to display dynamic content using the “make dynamic” checkbox. I have set up a page displaying all the hyperlinked titles of the dynamic articles, but can’t figure out how to display the full body on the subsequent page.

The limit=”1” parameter always displays the last entered article rather than the one specified in the URL. I have made a separate weblog which is ticked as “dynamic” in Tome and uses a separate template to display both the contents page and the article body page based on whether seg_3 exists:

{if seg_3 == ""}
{exp:weblog:entries weblog="{my_weblog}" disable="categories|member_data|pagination|trackbacks" rdf="off"}
<h3><a href="http://{title_permalink=">{title}</a></h3>
       {meta_desc}
{/exp:weblog:entries} 
{/if}

{if seg_3 != ""}
{exp:weblog:entries limit="1"}
<h3><a href="http://{title_permalink=">{title}</a></h3>
   {body}
{/exp:weblog:entries} 
{/if}

Here is the url of my dev page - try clicking through to the full article - it always comes back with article_2, even when you click article_1: http://org-edge.pmhclients.com/index.php/nav/edgeology/

thanks,

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

can you try outputting {seg_3}? it would appear the it is always empty. what excactly is seg_3. is it a variable you’ve defined earlier in the page?

       
James Smith's avatar
James Smith
259 posts
about 18 years ago
James Smith's avatar James Smith

Yes, sorry - seg_3 is simply the variable I’m using in accordance with the Tome wiki instructions (http://expressionengine.com/wiki/Tome_Module/) in order to get back the functionality of the built-in “segment_3” variable. All I’m trying to do there is state that if that third URL chunk exists then we want to display the entire article, and if it doesn’t, it should be a list of hyperlinked titles.

The variable values are listed at the bottom of the page, including seg_3: http://org-edge.pmhclients.com/index.php/nav/edgeology/edgeology_article_1/

James

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

try in your if seg != ” condition the following:

{exp:weblog:entries limit="1" dynamic="off" url_title="{seg_3"}
       
James Smith's avatar
James Smith
259 posts
about 18 years ago
James Smith's avatar James Smith

Thanks Mark, no joy with that unfortunately.

I have managed to get the full article to display by pointing the url directly to template group/template/entry:

<a href="http://{title_permalink=">{title}</a>
  • The problem with this is that I lose the use of all your static page variables which is why my topnav, left-nav and meta data disappears… do I have to hardcode these elements back into the contentArticles template, or can I get at those variables somehow even though I’m not on a static page?

thanks, James

       
James Smith's avatar
James Smith
259 posts
about 18 years ago
James Smith's avatar James Smith

The url of the summaries page here is set to use the contentArticles template: http://org-edge.pmhclients.com/index.php/nav/edgeology

  • but the topnav and leftnav, built with Tome, work fine here - presumably because the url reveals it to be within the static page structure…?
       
openmotive's avatar
openmotive
65 posts
17 years ago
openmotive's avatar openmotive

I’m beating my head against a wall here and I hope someone familiar with the Tome module can offer some insight. I’m new to EE but have become rather familiar with it over the past couple weeks.

All of the examples of navigation I’ve seen using the “static_tome_path” expression are either global nav lists (starting from page=”0”) or hard coded specific subsection lists (hardcoded to start at page=”n”). This requires creating a local navigation template for every section in a site and prohibits the end-user from adding sections and subsections without a developer’s help.

Is there any way to determine what the current page # is to then use it in the “static_tome_path” expression like so:

{exp:static_tome_path direction="post" nested="false" page="{current_cat_id}" depth="2" show_empty="no"}

{/exp:static_tome_path}

This would allow us to have only one navigation template for navigation within a section. Thanks!

       
First 3 4 5 6 7

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.