5 of 27
5
Tome (Static Pages)
Posted: 26 October 2006 10:10 PM   [ Ignore ]   [ # 73 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Alright, an update for everyone!  You’ll notice a few new features, first the categories now have icons, this is because under the configure tab there is now ‘Dynamic Weblog’ in the per-category options.  This allows you to set up certain categories to use a weblog other than the default ‘Static Weblog’.  These ‘Dynamic Weblogs’ are different from the static ones because they can have as many posts as the author wants under them.  For example you may have the following structure:

[S] About Us
——[S] Directions
——[S] Contact
{D} News
[S] Privacy Policy
[S] Terms and Conditions

Considering this, all the categories would get the “Static Weblog”, except for News which we would assign a different “Dynamic Weblog” of “News”.  Now when you see the “Pages” tab you would be able to click on “News” to post new entries to News or click on “view entries” to see all the News entries.  You can sort of think of this like combining the Publish tab into the extension.

Personally, I’m using this so my clients don’t have to worry about weblog names.  They come to the Pages tab and see their site map.  Then they click on any page to edit it.  If it’s a static page they edit the content.  If it’s a dynamic page they get to post more content.

Let me know what you guys think, I’m curious to see how intuitive this is.  Oh, and as usual grab the module/extension from the top of the thread!

 Signature 

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

Profile
 
 
Posted: 26 October 2006 10:54 PM   [ Ignore ]   [ # 74 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  233
Joined  01-18-2006

Hi Mark,

Thanks for the reply.

I noticed a small bug with the icons in the new update.

Pages Mod Screenshot

Eric

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 26 October 2006 11:14 PM   [ Ignore ]   [ # 75 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Should be fixed now.  Thanks for catching that RegExp bug.

 Signature 

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

Profile
 
 
Posted: 27 October 2006 01:50 AM   [ Ignore ]   [ # 76 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

hey thanks for awnsering mark i have posted my question here: http://expressionengine.com/forums/viewthread/39881/ i hope somebody will answer fast.

kevin,

Profile
 
 
Posted: 27 October 2006 06:56 AM   [ Ignore ]   [ # 77 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

btw it has been fixed smile it was stupid thingy i needed dynamic off smile

Profile
 
 
Posted: 27 October 2006 09:43 AM   [ Ignore ]   [ # 78 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Hello, there’s been a small update to 3.0.2 because the category order wasn’t obeying it’s settings.  That’s fixed now though.

 Signature 

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

Profile
 
 
Posted: 27 October 2006 11:23 AM   [ Ignore ]   [ # 79 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  233
Joined  01-18-2006

Hi Mark,

For some reason, I can’t view Pages that are nested three levels deep. Here’s my category structure:

—Living in Our Town
——About Our Town
———Mayor’s Message

I can view the first two levels at:

http://example.com/index.php/living_in_our_town
http://example.com/index.php/living_in_our_town/about_our_town

But not the third at:

http://example.com/index.php/living_in_our_town/about_our_town/mayor_s_message

My static template is below:

{embed="includes/header"}

{exp
:weblog:entries weblog="pages" category="{static_page}"}
   
<h2>{title}</h2>
   
{body}
{
/exp:weblog:entries}

{embed
="includes/footer"}

Eric

===========
By the way, I sort of worked out the Search Result url problem by creating template based on the above (called “search”) without the “category=” parameter and setting the Pages <del>weblog url</del> Search Results URL to “http://example.com/index.php/site/search”.

It seems to work, but I’m not sure if there will be repercussions elsewhere.
===========

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 27 October 2006 12:03 PM   [ Ignore ]   [ # 80 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Huh, i’ll have to debug.  Can you edit all the entries in that tree?  Meaning can you edit all three of these pages?

—Living in Our Town
——About Our Town
———Mayor’s Message

Thanks, I’ll let you know what I figure out.

 Signature 

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

Profile
 
 
Posted: 27 October 2006 12:20 PM   [ Ignore ]   [ # 81 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Alright debugging done!  The problem was with three level categories the third segment wasn’t getting overwritten, so you have two options:

1. add

dynamic="off"

to your exp:weblog:entries tag

or

2. download and use the latest version of the app from the top of this thread which addresses this issue and a few others.

 Signature 

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

Profile
 
 
Posted: 27 October 2006 12:41 PM   [ Ignore ]   [ # 82 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  233
Joined  01-18-2006

Hi Mark,

Downloaded 3.03—works like a charm! Thanks so much for this plug-in.

Eric

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 27 October 2006 06:04 PM   [ Ignore ]   [ # 83 ]  
Grad Student
Avatar
Rank
Total Posts:  43
Joined  08-18-2005

I’m running 3.0.3 on build 20061011. I’m getting this error atop all pages of my development site:

Notice: Uninitialized string offset: 0 in E:\My Projects\Expression Engine\WWW\system\extensions\ext.pages.php on line 217

Warning
: Cannot modify header information - headers already sent by (output started at E:\My Projects\Expression Engine\WWW\system\extensions\ext.pages.php:217) in E:\My Projects\Expression Engine\WWW\system\core\core.functions.php on line 707

Any ideas? Could it be due to the fact that I’m running the dev server on Windows - similar to the problem I had with the Edit Remember extension?

Another issue that may just be down to my EE configuration is the ‘View’ link for each category on the ‘Pages’ page in the Control Panel. I am getting a double slash after the domain. So, for example, on my setup the link points to

http://www.expressionengine.dev//about

This doesn’t actually have any repercussions as far as I am aware, but it seems like a bug. Might it be caused by leaving the field for ‘Name of your site’s index page’ blank on the General Configuration page? - I am using mod_rewrite to remove the index.php from my site’s URLs.

Also, I’ll take this opportunity to make a feature request!  tongue wink Would it be possible to offer a choice between underscores and dashes when converting category names to URL friendly form please? I’d like to be able be consistent in using dashes across the entire site.

Great module by the way. Keep up the good work!

Profile
 
 
Posted: 28 October 2006 12:04 PM   [ Ignore ]   [ # 84 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Will, those fixes have been made.  Also if you’d like to define your own url structure you’ve always been able to enter the exact string in the category description field.  Then the desc will be used instead of a converted name.  grab it at the top of this thread.

 Signature 

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

Profile
 
 
Posted: 28 October 2006 01:17 PM   [ Ignore ]   [ # 85 ]  
Grad Student
Avatar
Rank
Total Posts:  43
Joined  08-18-2005

Re: defining URL structure - Very cool! Would be nice if EE behaved this way natively (unless I’ve missed something).

Double slashes have gone on ‘View’ link. Unfortunately some new error messages have appeared. On the ‘Pages’ page in the Control Panel I am now getting this in triplicate:

Warning: str_repeat(): Second argument has to be greater than or equal to 0. in E:\My Projects\Expression Engine\WWW\system\modules\pages\mcp.pages.php on line 440

Warning
: str_repeat(): Second argument has to be greater than or equal to 0. in E:\My Projects\Expression Engine\WWW\system\modules\pages\mcp.pages.php on line 376

And on the actual development site I now get this:

Notice: Undefined index: group in E:\My Projects\Expression Engine\WWW\system\extensions\ext.pages.php on line 221

Notice
: Undefined index: template in E:\My Projects\Expression Engine\WWW\system\extensions\ext.pages.php on line 222

Notice
: Undefined index: group in E:\My Projects\Expression Engine\WWW\system\extensions\ext.pages.php on line 223

Warning
: Cannot modify header information - headers already sent by (output started at E:\My Projects\Expression Engine\WWW\system\extensions\ext.pages.php:221) in E:\My Projects\Expression Engine\WWW\system\core\core.functions.php on line 707

I hope I’m not starting to annoy you downer . And I haven’t even tried out the dynamic pages feature yet! grin

Profile
 
 
Posted: 28 October 2006 06:13 PM   [ Ignore ]   [ # 86 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Hey Will.  I fixed these bugs in 3.0.4 but forgot to post and let people know.  You can grab 3.0.4 at the top of the thread.

 Signature 

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

Profile
 
 
Posted: 29 October 2006 04:45 AM   [ Ignore ]   [ # 87 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  05-15-2004

I had originally installed 3.0.1, and now I upgraded to 3.0.4. However, the Modules page still shows 3.0.1, and if I try to remove it, that doesn’t seem to work.

 Signature 


:: Westeros :: Hippoi Athanatoi ::

Blackadder: “Baldrick, have you no idea what irony is?”   
Baldrick: “Yeah! It’s like goldy and bronzy, only it’s made of iron.”
Blackadder III, Amy and Amiability

Profile
 
 
Posted: 29 October 2006 08:03 AM   [ Ignore ]   [ # 88 ]  
Grad Student
Avatar
Rank
Total Posts:  43
Joined  08-18-2005

Hi Mark - I’d already upgraded to 3.0.4 when I wrote my previous entry, so those error messages are current.

Linda A: I’ve experienced that issue, but removing and then installing the module did work for me. You do then have to re-configure the module of course (on the ‘Pages’ page in CP).

Profile
 
 
Posted: 29 October 2006 08:22 AM   [ Ignore ]   [ # 89 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1505
Joined  05-15-2004

Will: Did the ‘remove’ actually remove the module for you? I’ve tried several times, and it doesn’t get removed.

 Signature 


:: Westeros :: Hippoi Athanatoi ::

Blackadder: “Baldrick, have you no idea what irony is?”   
Baldrick: “Yeah! It’s like goldy and bronzy, only it’s made of iron.”
Blackadder III, Amy and Amiability

Profile
 
 
Posted: 29 October 2006 08:38 AM   [ Ignore ]   [ # 90 ]  
Grad Student
Avatar
Rank
Total Posts:  43
Joined  08-18-2005

Clicking ‘remove’ takes me to the ‘De-Install Module’ page. Clicking ‘De-Install Module’ takes me back to the Modules page where the Pages module is marked as ‘Not Installed’. The Pages Extension is still enabled though. The actual module files are not deleted from the system (I’m running my dev server on Windows, so this behaviour could be different on Unix).

If ‘remove’ isn’t working for you then perhaps you could try manually deleting all the module files and starting from scratch with the latest version.

Profile
 
 
   
5 of 27
5
 
‹‹ 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: 49
Total Topics: 81838 Total Anonymous Users: 32
Total Replies: 440032 Total Guests: 241
Total Posts: 521870    
Members ( View Memberlist )