3 of 27
3
Tome (Static Pages)
Posted: 20 October 2006 11:20 AM   [ Ignore ]   [ # 37 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

This is probably user error, and i’ll probably get it working, but it prompts a suggestion:

right at the moment, i can’t actually NAVIGATE to any of my damn static pages, by hook or by crook. How about, on the main “view/edit” screen of the module, a “link generator” next to each category/entry? That would make it a LOT more convenient than trying to remember/parse out the scheme by which category names get turned into page names! Just copy and paste into your nav where you need it!

—Adrienne

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

In the meantime: the url scheme is a pretty basic regular expression as follows /[^A-Z0-9_-]+/i.  Which means it will just take everything that is not a letter, number, underscore or hyphen and convert it to an underscore.  So a page named “News & Opinion” would become “news_opinion”.

That said, I think it’s a good suggestion and I will certainly build this ability into a subsequent release.  However, I’m not sure the links warrant their own version.  Do you, alienne (or anyone else for that matter) have any other suggestions for features?

 Signature 

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

Profile
 
 
Posted: 20 October 2006 02:29 PM   [ Ignore ]   [ # 39 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

No joy. Just in case it was user error of some OBVIOUS kind, i created a very short category: “test”. Then i some content under it. Then i tried to go to http://www.eidolongroup.com/web/test/  (web is the renamed index.php), and got my “generic” page (that appears instead of a 404 on any page that doesn’t actually exist.)

—Adrienne

Profile
 
 
Posted: 20 October 2006 02:34 PM   [ Ignore ]   [ # 40 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Ok.  Let’s make sure everything is set up first:

1. Go to the Pages module and click “Configure”
2. Make sure a Weblog has been chosen
3. Make sure a default template has been chosen (this is what you will see on the live site)
4. Click Sage
5. Look at your category structure and choose a top level category (with no parents)
6. Make sure there is content in that category
7. Navigate to your page (without any form or rewriting, so put in the physical index.php like so: http://example.com/index.php/cat_name)
* You should now see the template you choose in step 3.  If not then continue.

1. Go to the “Admin” tab
2. Choose Settings and Output (at the bottom)
3. Turn on Template Debugging
4. Copy and Paste the output to me (either here or as a PM)

 Signature 

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

Profile
 
 
Posted: 20 October 2006 02:48 PM   [ Ignore ]   [ # 41 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

Page is configured. There is content. There *is* no physical index.php, it’s been renamed to ‘web’, and then addTyped and mod_rewritten in .htaccess . This all works with everything else, and has for quite awhile. But going to either index.php/catname or web/catname—same story. Get a page that’s not the one it should be.  Turned on Template Debugging, and get *nothing* extra on that page.

EE 1.5, btw. (Not 1.5.1 yet.)


—Adrienne

Profile
 
 
Posted: 20 October 2006 04:50 PM   [ Ignore ]   [ # 42 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

Okay, better now… turns out that the problem wasn’t EXACTLY user error. The EXTENSION for Pages (not the module itself) had somehow gotten itself disabled and had to be re-enabled. I can now get to my pages!

*sheepish*

Besides link generation, you want more features? Well, one thing i can think of is it seems really counterintuitive to me, from an interface design standpoint, to have the per-page template override at the bottom of the “Configure” tab, somehow. Perhaps instead, or in addition, you could have THAT show up on the View/Edit screen as well?

So each entry might look like:

About Us     (link)    Change template? (dropdown)
Contact Us   (link)    Change template? (dropdown)

—Adrienne

Profile
 
 
Posted: 20 October 2006 05:16 PM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

Oh, and also—if you can manage it, a link from the module screen somewhere to edit the appropriate Categories list would be great! I hate having three clicks to edit these… (lazy web designer me!)

And by the way, i am SOOOOO jealous of you that you get to work for Happy Cog! I would just weep for joy if i got to work with those folks!

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

Some responses:

1. The per-page template customization is on the configure side because most of the time you don’t want clients going in and mucking up which template a category uses.  I am in the process of redesigning that page, but more for ease of use not to move the per-page template choices.

2. I think that adding a link to edit the categories can work, however I may just implement that directly into the module so even a novice could add/remove pages.

That’s it for me, back to coding.

 Signature 

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

Profile
 
 
Posted: 20 October 2006 07:44 PM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

alright alienne, this one’s for you.  grab the package again from the first post in this thread and be happy!  you’ll notice on the configure tab the word categories links you directly to the edit categories page.

 Signature 

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

Profile
 
 
Posted: 23 October 2006 12:16 PM   [ Ignore ]   [ # 46 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  276
Joined  06-12-2002

Thank you SO much, Mark! I really appreciate it!

Profile
 
 
Posted: 23 October 2006 06:08 PM   [ Ignore ]   [ # 47 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1506
Joined  05-15-2004

I am considering giving this a try for my static pages (currently, text as well as markup resides in the template for each page), but the one thing I am wondering about is searches. Using this approach, is the static content searchable through EE’s regular search? And if so, how does it work with the search result URLs?

 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: 23 October 2006 07:12 PM   [ Ignore ]   [ # 48 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

We’ll it would be searchable (because the content is just stored as any other weblog entry would be stored).  As for search result urls’ i’ll have to investigate, however I would assume if you name your entries the same as your categories the urls should match up and work for static pages.

Although, are you sure you want your static pages indexed?  Usually static pages wouldn’t come up in a site specific search, but that’s just my take.

If you’d like (and probably even if you wouldn’t) i’ll set up a ‘test’ environment on my development server so you can take a look at this module/extension in action and judge for yourself.

 Signature 

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

Profile
 
 
Posted: 24 October 2006 08:36 AM   [ Ignore ]   [ # 49 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

hey first off al thanks for the great plugin!

One small problem i configure my pages and set the right template. But when i want to click it doesnt show the right link it keeps saying : http://www.host.be/index.php/This%20is%20the%20text%20that%20will%20appear%20on%20the%20first%20page.
Is this a bug or am i still missing something?


Thanks in advance,

Profile
 
 
Posted: 24 October 2006 08:44 AM   [ Ignore ]   [ # 50 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

1. Are you talking about clicking the “view” link?
2. What is the category name that you’re trying to view

 Signature 

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

Profile
 
 
Posted: 24 October 2006 09:15 AM   [ Ignore ]   [ # 51 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

I’am trying to vieuw a category called “contact page”.
Second i got the module running online. Now i exported my db, deleted my local db and imported the exported db.

It works fine until i try to click on the pages link then it throws me this error:
MySQL ERROR:

Error Number: 1146

Description: Table ‘packed_live.mod_pages’ doesn’t exist

Query: SELECT type, name, value FROM mod_pages

Any idea how this comes?

Profile
 
 
Posted: 24 October 2006 09:20 AM   [ Ignore ]   [ # 52 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

how did you export/import the databases?  using the EE methods under the admin tab?  If so it won’t copy the modules custom table, to do that you’ll have to use phpmyadmin.  or it might be easiest to just un-install the module and reinstall it.  That should create the table for you.

 Signature 

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

Profile
 
 
Posted: 24 October 2006 09:30 AM   [ Ignore ]   [ # 53 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

when i try to deinstall the module i get the same error but ill use phpmyadmin from now on.

Any idea about the view link not working?

Thanks for your help already!

Profile
 
 
Posted: 24 October 2006 09:33 AM   [ Ignore ]   [ # 54 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1184
Joined  01-05-2006

Yup, using phpmyadmin to move over that single table shouldn’t be too bad.  as for the links, do they work on the remote server and not the local server?  or are they broken in both cases?

 Signature 

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

Profile
 
 
   
3 of 27
3
 
‹‹ 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: 65028 Total Logged-in Users: 26
Total Topics: 82117 Total Anonymous Users: 13
Total Replies: 441318 Total Guests: 181
Total Posts: 523435    
Members ( View Memberlist )