Default article as .tmpl
Default article as .tmpl
Hi,
I know this may sound a little odd (or stupid or unconcious), but wouldn't it be simplier to handle (not to code, note the difference) the articles and the way they display if the default article display was in a .tmpl file as well?
It is so easy to change the .tmpl files (sample: summary, list) so you can get a different display.
I always have to alter the core code to make the default article appear differently.
The reason? Well, mainly because people who take care of their website always (or many times) forget to choose the template display:
And their article or article listing appear differently (the default instead of the sample)
I'm not saying that is difficult to just select it (it couldn't be simplier in fact), but as you know we might remember it (because we're used to phpwcms) but normal users DO forget (trust my experience).
Maybe it would be even simplier to be able to assign the sample (or whatever newly create template) as default to "article listing" and "display full article". Is that possible? I guess it is and might be a simplier solution (or maybe it is already possible and I don't know how )
What do you think about it?
EDITED: is this already scheduled by OG in his roadmap?
Cheers
EDITED: quick link to Jensz solution
http://www.phpwcms.de/forum/viewtopic.php?t=9427
I know this may sound a little odd (or stupid or unconcious), but wouldn't it be simplier to handle (not to code, note the difference) the articles and the way they display if the default article display was in a .tmpl file as well?
It is so easy to change the .tmpl files (sample: summary, list) so you can get a different display.
I always have to alter the core code to make the default article appear differently.
The reason? Well, mainly because people who take care of their website always (or many times) forget to choose the template display:
And their article or article listing appear differently (the default instead of the sample)
I'm not saying that is difficult to just select it (it couldn't be simplier in fact), but as you know we might remember it (because we're used to phpwcms) but normal users DO forget (trust my experience).
Maybe it would be even simplier to be able to assign the sample (or whatever newly create template) as default to "article listing" and "display full article". Is that possible? I guess it is and might be a simplier solution (or maybe it is already possible and I don't know how )
What do you think about it?
EDITED: is this already scheduled by OG in his roadmap?
Cheers
EDITED: quick link to Jensz solution
http://www.phpwcms.de/forum/viewtopic.php?t=9427
Last edited by Kosse on Thu 15. Dec 2005, 13:23, edited 1 time in total.
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
this has been repoted to Oliver at http://www.phpwcms.de/mantis/, and apparently has been aknowleged by OG. You could add your note there (http://phpwcms.de/mantis/view.php?id=17 once logged in) as well to encourage Oiver to change this.
However these posts don't seem to have cought much attention.
http://phpwcms.de/forum/viewtopic.php?t=6039
http://phpwcms.de/forum/viewtopic.php?t=4013
But to me this is one of the most urgent things that have to be improved!
However these posts don't seem to have cought much attention.
http://phpwcms.de/forum/viewtopic.php?t=6039
http://phpwcms.de/forum/viewtopic.php?t=4013
But to me this is one of the most urgent things that have to be improved!
Thanks Spirelli,
didn't see your previous posts, but that's exactly what I meant.
I will post something in Mantis about it.
Happy to see that I'm not the only one struggling with it (feel less lonely
Meanwhile, will see if I can alter the code to set sample template as default
Cheers
didn't see your previous posts, but that's exactly what I meant.
I will post something in Mantis about it.
Happy to see that I'm not the only one struggling with it (feel less lonely
Meanwhile, will see if I can alter the code to set sample template as default
Cheers
Last edited by Kosse on Tue 21. Jun 2005, 20:06, edited 1 time in total.
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
Yes, my main concern is that the system should be as easy as possible for anyone to use, regular editors having to know little things like this. Couldn't expect then to set stuff like this each time. Just got a comment today that a person does not find the system easy enough... (Although I find it quite straight forward otherwise).
my workaround for this issue is to add .tmpl to line 170 of include/inc_tmpl/article.editsummary.tmpl.php
it automatically assigns defualt.tmpl to the article summary of all newly created articles as if it were selected by hand - you must have a default.tmpl within phpwcms/inc_cntpart/articlesummary/article/ too
It does mean that you will need to 'touch' each existing articles summary to correct the database go into the article summary then save - no editing required)
the fix is the same for the articlesummary list too ...
line 152 of the same file
ps: i use .htm so that dreamweaver shows me pretty coloured syntax
Code: Select all
echo '<option value="default.tmpl"'.$vals.'>'.$BL['be_cnt_default']."</option>\n";
It does mean that you will need to 'touch' each existing articles summary to correct the database go into the article summary then save - no editing required)
the fix is the same for the articlesummary list too ...
line 152 of the same file
Code: Select all
echo '<option value="default.tmpl"'.$vals.'>'.$BL['be_cnt_default']."</option>\n";
ps: i use .htm so that dreamweaver shows me pretty coloured syntax
Last edited by pSouper on Sat 27. Aug 2005, 22:06, edited 1 time in total.
yes yes! ability to modifiy from templates the article listing and summary, yummy yummy
Cheers
Cheers
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
I think this is asking for a default article/listing template to be selected per template
I was thinking it should be per structure instead but I guess if it was processed in line then the template could set the article/list template...if the structure has a set article/list template then this overrides the templates setting and finally if the article has an article/list template this too overrides that of the previous settings.... very flexible and efficient I think
I was thinking it should be per structure instead but I guess if it was processed in line then the template could set the article/list template...if the structure has a set article/list template then this overrides the templates setting and finally if the article has an article/list template this too overrides that of the previous settings.... very flexible and efficient I think
Yes, even better:pSouper wrote:I think this is asking for a default article/listing template to be selected per template
I was thinking it should be per structure instead but I guess if it was processed in line then the template could set the article/list template...if the structure has a set article/list template then this overrides the templates setting and finally if the article has an article/list template this too overrides that of the previous settings.... very flexible and efficient I think
STRUCTURE = PARENT
TEMPLATE = CHILD
ARTICLE = CHILD OF CHILD (GRANDSON ?)
If nothing, then set default, yes yes...
So the grandson would override the child that would override the parent?Mmmm, like it!
Well, it's not night, so I better keep my eyes open and dream another day
But the idea is clever and would improve/ease the handling of the look of articles. Eventhough I guess to code it is another thing...
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
That idea of inheritance seems very flexible and it shouldn't be too hard to code. The way Oliver has structured the code it is pretty easy to make any changes in a short amount of time. I also noticed that he started a new sourceforge project that is striving to use more xml. Xml would be perfect to define these types of things. I am curious to see what his ideas are for the new project...
I would also like to be able select a different page template for articles. In other words, I'd like to be able to override the page template at the structure level with a page template at the article level, in the same manner as you suggested for article templates.
Jens
I would also like to be able select a different page template for articles. In other words, I'd like to be able to override the page template at the structure level with a page template at the article level, in the same manner as you suggested for article templates.
Jens
Hi JensZ,
what new project on Sourceforge do you mean? Keonacms? I know 100% that Oliver Georgi did not start this project. It's a project by cguenther and it will be a possible fork of phpwcms later that is not supported by Oliver Georgi... So why should he support a copy when he is the developer of the original one and only phpwcms...?
Joachim
what new project on Sourceforge do you mean? Keonacms? I know 100% that Oliver Georgi did not start this project. It's a project by cguenther and it will be a possible fork of phpwcms later that is not supported by Oliver Georgi... So why should he support a copy when he is the developer of the original one and only phpwcms...?
Joachim