| New feature - skinned content |
| Author | Text |
sanchez Junior Member

Posts: 67

Gender:  Online: No |
Date: 19/07/2008 14:18 New feature - skinned content | #post10255 | So I was wondering if anyone else is interested in being able to skin specific content (blog,news, article, etc) ?
At the moment the code for such things is hard coded in the pages for each content.
If anyone is interested in such a thing, post a request in this post and I will see how much interest there is and go ahead and make it possible to do.
 |
|
 |
| |
Iconoclast Junior Member

Posts: 73

Gender:  Online: No
Version: 3.9.0 Country: UK |
Date: 19/07/2008 17:25 Re: New feature - skinned content | #post10261 | I'd be interested in seeing that functionality. |
|
 |
| |
Cylon Junior Member

Posts: 92

Gender:  Online: No
Version: 3.9.0 plus many smart add ons Country: Chile-Mexico Languages: Spanish; English; Italian; Russian, Portuguese |
Date: 19/07/2008 20:09 Re: New feature - skinned content | #post10272 | what do you means when talk about skinned content please explain me, Thanks
Cylon |
|
 |
| |
sanchez Junior Member

Posts: 67

Gender:  Online: No |
Date: 19/07/2008 20:16 Re: New feature - skinned content | #post10273 | for example, you want to change the look and layout of article or category or blog or news or guide or faq, instead of having the list and the look that they currently have. Because at the moment such content layout is hardcoded into each section or category.
it will require much modification of memht core files but I can release each file with the updates already in it. Edited: 19/07/2008 20:19 |
|
 |
| |
mem MemHT's Dad Admin / Developer

Posts: 3778

Gender:  Online: No
Languages: English, Italiano, Makedonski, Srpski, Un poco de Español |
Date: 19/07/2008 20:49 Re: New feature - skinned content | #post10274 | I'm planning to create a hook system for memht... What about giving the possibility to customize the look of articles, news etc, with template files? I mean, the possibility to declare in the template, how an article should look like. |
|
 |
| |
Iconoclast Junior Member

Posts: 73

Gender:  Online: No
Version: 3.9.0 Country: UK |
Date: 19/07/2008 21:12 Re: New feature - skinned content | #post10277 | Hook system sounds great, however it occurs I think that choice is a good thing so that individual sites can create something quite unique. I'm all for new features of any kind as long as they can be deactivated or not used by those who may not want to use them  |
|
 |
| |
mem MemHT's Dad Admin / Developer

Posts: 3778

Gender:  Online: No
Languages: English, Italiano, Makedonski, Srpski, Un poco de Español |
Date: 19/07/2008 21:47 Re: New feature - skinned content | #post10279 | I understand but if i begin to create a control panel for every single pixel of the portal you would need a dedicated server with 8 cpus to install it... a site is not a toy, you can change configuration once in 6 months, let it be 3 or even 1, but not twice a day... a content management system as first should be reliable, as second secure and third LIGHT and FAST, but those words do not get along with hundreds of controls, on off left right up down for every engine element, there must be a compromise  Edited: 19/07/2008 21:50 |
|
 |
| |
sanchez Junior Member

Posts: 67

Gender:  Online: No |
Date: 19/07/2008 21:53 Re: New feature - skinned content | #post10281 | well i was working it this way:
for example in pages/articles/index.php, replace all the echo content fields with array value that you get from template/templatename/article_view.tpl
inside article_view.tpl you have your table or div with layout and {TITLE},{DATE}, {CONTENT} etc, then in pages/articles/index.php it loads the article_view.tpl and parses those content tags and inputs the data and show the template output.
hard to explain but I think you get the idea.
As for Hooks, yes great idea, I was alos thinking of this but it will be needed to be added to memht core because too many files to edit.
 |
|
 |
| |
mem MemHT's Dad Admin / Developer

Posts: 3778

Gender:  Online: No
Languages: English, Italiano, Makedonski, Srpski, Un poco de Español |
Date: 19/07/2008 21:57 Re: New feature - skinned content | #post10282 | I don't think is such a problem.
Articles:
| code | if (function_exists("custom_articles")) {
custom_articles();
} else {
function default articles() {
...
}
} |
This is how a hook might work, and obviously it's not as simple as this code example, but the logic is the same |
|
 |
| |
sanchez Junior Member

Posts: 67

Gender:  Online: No |
Date: 19/07/2008 23:42 Re: New feature - skinned content | #post10285 | thats the stuff  |
|
 |
| |