18 of 27
18
Tome (Static Pages)
Posted: 31 January 2007 11:47 AM   [ Ignore ]   [ # 307 ]  
Lab Assistant
RankRank
Total Posts:  258
Joined  05-26-2003

ok , module, plugin & extension installed and switched on. Auto select parent categories turned off. But so far me and static pages are not seeing eye to eye:

1. For the page template, does it need to be set to a ‘static’ type or can its type be ‘web page’?

2. When I click to edit a static page the first time I must enter a Title and URL Title. Must these be the same as the name in the category tree?

3. I have to check every ‘Override Template’ box or else I get the error pointed out in the post above.. I don’t know if this is just normal behaviour?

4. My static pages category tree is set as so:
About
- Company
- Contact

but if I go to mysite.com/about/company/ I also get the page content from ‘About’ and ‘Contact’. My tag is:

{exp:weblog:entries weblog="static_pages" category=”{static_page}" dynamic="off"}
<div>
<a href="">{title}</a>
{summary}
{body}
</div>
{/exp:weblog:entries}

Should I also have a limit=“1” in there as well or have I goofed somewhere else?

cheers, Kenny

 Signature 

ExpressionEngine 1.6.4 - Build:  20080808

Profile
 
 
Posted: 31 January 2007 12:38 PM   [ Ignore ]   [ # 308 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

I don’t think you have to list a weblog:

{exp:weblog:entries category="{static_page}" dynamic="off"}
<div>
<
a href="">{title}</a>
{summary}
{body}
</div>
{/exp:weblog:entries}

Since you’re pulling the info from the Category rather than the Weblog itself…well the weblog is defined in the Pages Module Settings.

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 31 January 2007 01:06 PM   [ Ignore ]   [ # 309 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006
Mark Huot - 29 January 2007 09:05 AM

You’ll want to make both Case Studies and the detail page (Case Study 1) a physical template.  Then write out the {exp:weblog:entries /} tag on your own using the category ID instead of the {static_page} variable.

Mark,

This is how I have it setup:

-Home
-Work
—Case Study 1
—Case Study 2

Case Study is it’s own template and uses the code below to call the weblog.

{exp:weblog:entries weblog="case_study" orderby="date"}

I have copied and pasted the code from the News template which is working properly.  I’m not sure why one is work and the other isn’t but it’s driving me crazy.

I have deleted both entries and started over but I’m not sure what else to try.

Edit:

I changed the code to this:


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

And now nothing comes up.

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 31 January 2007 01:49 PM   [ Ignore ]   [ # 310 ]  
Lab Assistant
RankRank
Total Posts:  258
Joined  05-26-2003
seth.aldridge - 31 January 2007 12:38 PM

I don’t think you have to list a weblog:

{exp:weblog:entries category="{static_page}" dynamic="off"}
<div>
<
a href="">{title}</a>
{summary}
{body}
</div>
{/exp:weblog:entries}

Since you’re pulling the info from the Category rather than the Weblog itself…well the weblog is defined in the Pages Module Settings.

Thanks Seth, i tried it without defining a weblog but all it does is display ALL my weblog entries!! even if I hardcode in a specific category (category=“about” for example). I think I will have to try and work through the set up again.

 Signature 

ExpressionEngine 1.6.4 - Build:  20080808

Profile
 
 
Posted: 31 January 2007 06:23 PM   [ Ignore ]   [ # 311 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006

I have a huge problem!

Our site went live today and now my Request for Information page is not showing up at all!

This is how I have it setup.

Category:

Contact
—Request For Information
—Thank You

Pages Module Config:
Contact                       Default           site/contact
—Request For Information       Default           site/request-for-proposal
—Thank You                   Default           site/thank-you

There is text in the Static page.  All my tags are right:

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

http://www.re-volvemedia.com/contact-us/

I’m not sure what happened but I need to figure this out asap!!

http://www.re-volvemedia.com/index.php/site/request-for-proposal/ - template

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 31 January 2007 06:27 PM   [ Ignore ]   [ # 312 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  183
Joined  03-21-2006
seth.aldridge - 31 January 2007 06:23 PM

I have a huge problem!

Our site went live today and now my Request for Information page is not showing up at all!

This is how I have it setup.


Category:
Contact
—Request For Information
—Thank You


Pages Module Config:
Contact                       Default           site/contact
—Request For Information       Default           site/request-for-proposal
—Thank You                   Default           site/thank-you

There is text in the Static page.  All my tags are right:

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

The Pages Module is showing the text when I click the link to edit the text.

http://www.re-volvemedia.com/contact-us/

I’m not sure what happened but I need to figure this out asap!!

http://www.re-volvemedia.com/index.php/site/request-for-proposal/ - template

 Signature 

http://www.sethaldridge.com/

Profile
 
 
Posted: 01 February 2007 07:29 AM   [ Ignore ]   [ # 313 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

If you are having problems where the category=”” does not appear to be working it’s quite possibly because it isn’t.  Some people have copied and pasted code from somewhere and are grabbing a “curly” quote around the {static_page} category.

Make sure your quotes are straight and everything should work as advertised.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 02 February 2007 01:04 PM   [ Ignore ]   [ # 314 ]  
Lab Assistant
RankRank
Total Posts:  104
Joined  09-19-2006

I’ve got the pages module working well - amazing module… thanks Mark!!

I’m wondering though, if I can list pages for a specific top-level category in a template other than the default Pages Module template.

I have a Page set up in the module and configured it to use a different template,  one that is set to be the homepage for my site. Everything works well when I view the pages and the home page template is used as requested etc.,  but if I go to the home page of the site without the category and subcategory appearing in the url, I can’t seem to list the sibling pages in my navigation.

I tried to use the following code:

{exp:static_page_path  direction="post" page="4" depth="1" nest="false"}
      
<li><a href="{url_title}" title="{pagetitle_en}">{title}</a></li>
{/exp:static_page_path}

But it just outputs the {title} tag literally.  Has anyone had any luck with something similar?

Thanks!

Profile
 
 
Posted: 04 February 2007 04:30 PM   [ Ignore ]   [ # 315 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  130
Joined  06-10-2006

............... red face

 Signature 

He who thinks he knows, doesn’t know but he who knows he doesn’t know, knows.
J.C.

Profile
 
 
Posted: 05 February 2007 12:11 AM   [ Ignore ]   [ # 316 ]  
Summer Student
Total Posts:  8
Joined  12-11-2006

Hi,

First of all, thanks to Mark Huot for developing this awesome plugin. Thanks also to the rest of the members who have posted their helpful responses and tips. I’m hoping someone can shed some light on the problem I’m encountering at the moment.

I’ve been working with EE Core and Pages module for week without any major problems. This morning I decided to obtain a personal license and a full version of EE. I followed the instructions posted in the support forum about upgrading from core to the full version (http://expressionengine.com/docs/installation/update_from_core.html).

For the most part, I was successful in upgrading my EE installation. When I tried to view the pages (using the ‘View’ link found on the pages module interface) on the site I was developing, I was greeted by this error message:

Fatal error: Call to undefined function: active_hook() in /home/httpd/vhosts/gsc.vitro.ph/httpdocs/gscadmin/modules/weblog/mod.weblog.php on line 2795

Has anyone encountered a similar problem (upgrading from core to full version with the pages module previously installed)?

when I reverted back to the core version, everything worked again.

Steve Magdaraog

Profile
 
 
Posted: 05 February 2007 06:52 AM   [ Ignore ]   [ # 317 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

I’m not positive about this, but you probably missed part of the update.  I’ve searched through my install of 1.5.2 and active_hook() doesn’t appear for me either.  But I don’t get an error, probably because there shouldn’t be a call for it anymore.  You may want to try positing this issue to a new thread to be sure that the EE folks get a look at it since they will be able to help a little more if it is an upgrade issue.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 05 February 2007 01:59 PM   [ Ignore ]   [ # 318 ]  
Summer Student
Total Posts:  8
Joined  12-11-2006

Hi Mark,

I created a new installation of EE Full Version and now works fine. Thanks for looking into it.

Steve

Profile
 
 
Posted: 06 February 2007 09:03 AM   [ Ignore ]   [ # 319 ]  
Summer Student
Total Posts:  3
Joined  05-26-2006

Hi All,

Im having problem with module breaking EE Pagination, a couple of people have mentioned it before but I havnt seen any replys?

Is there a way to fix this… oh and thanks mark for your hard work.

t

Profile
 
 
Posted: 06 February 2007 05:11 PM   [ Ignore ]   [ # 320 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  570
Joined  10-14-2005

Is there some way to return the ‘visible’ URL segments when using the static pages module? ‘segment_1’ returns the url friendly name of the weblog which I use for my static content rather than what I actually see in the URL. smile

Regards

 Signature 

Nathan Pitman

Nine Four Ltd - a member of the EEPro Network

Profile
 
 
Posted: 06 February 2007 06:36 PM   [ Ignore ]   [ # 321 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Try this for accessing the URL on a static page: http://expressionengine.com/forums/viewthread/38358/P234/#197756

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 06 February 2007 08:29 PM   [ Ignore ]   [ # 322 ]  
Summer Student
Avatar
Total Posts:  17
Joined  09-14-2006

I’m having the same issue as seth above and tried replacing the quotes as suggested but that didn’t help. Here’s what I’m trying to do:

Categories
Contact Us
—Thank You

The top level pages (Contact Us) all work fine and pull the content for those static pages in properly, but the second level pages (Thank You) don’t. Any ideas? Here is the code that I have on the static page template:

{exp:weblog:entries category="{static_page}"}
            
<h1>{static_page_name}</h1>
            
{body}
            {extended}
        {
/exp:weblog:entries}

Any help would be greatly appreciated.

Profile
 
 
Posted: 06 February 2007 10:24 PM   [ Ignore ]   [ # 323 ]  
Grad Student
Avatar
Rank
Total Posts:  70
Joined  05-06-2006

fuze, would this help at all:

http://expressionengine.com/forums/viewthread/43096/

it allows you to use the last segment of the URL in your code and works with Static pages

so you could say category=”{last_segment}”

Profile
 
 
Posted: 06 February 2007 11:25 PM   [ Ignore ]   [ # 324 ]  
Summer Student
Avatar
Total Posts:  17
Joined  09-14-2006

Hey folks….Mark helped me out….

Just needed to add dynamic=“off” to the entries tag. Hope that helps anybody else with that problem.

Profile
 
 
   
18 of 27
18
 
‹‹ 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: 64905 Total Logged-in Users: 59
Total Topics: 81838 Total Anonymous Users: 37
Total Replies: 440024 Total Guests: 236
Total Posts: 521862    
Members ( View Memberlist )