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!
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?
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.)
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)
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.
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)
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!
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.
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.
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?
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.
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?
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:
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.
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?