MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
     Site demo
Moderators: mem paulo89 adminik
RSSReply
New feature - skinned content
AuthorText
sanchez
Junior Member
Avatar

Posts: 67
Contributes: 66

Gender: _NEUTRAL_
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.

Smile Smile
Delete Edit Quote
 
Iconoclast
Junior Member
Avatar

Posts: 73
Contributes: 49

Gender: _MALE_
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.
Delete Edit Quote
 
Cylon
Junior Member
Avatar

Posts: 92
Contributes: 53

Gender: _MALE_
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
Delete Edit Quote
 
sanchez
Junior Member
Avatar

Posts: 67
Contributes: 66

Gender: _NEUTRAL_
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
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3778
Contributes: 1050

Gender: _MALE_
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.
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
Iconoclast
Junior Member
Avatar

Posts: 73
Contributes: 49

Gender: _MALE_
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 Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3778
Contributes: 1050

Gender: _MALE_
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 Smile
Edited: 19/07/2008 21:50
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
sanchez
Junior Member
Avatar

Posts: 67
Contributes: 66

Gender: _NEUTRAL_
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.
Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3778
Contributes: 1050

Gender: _MALE_
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
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
sanchez
Junior Member
Avatar

Posts: 67
Contributes: 66

Gender: _NEUTRAL_
Online: No
Date: 19/07/2008 23:42
Re: New feature - skinned content
#post10285
thats the stuff Smile
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Help MemHT Portal
Navigator
Search
Users Block
Hi Guest
IP: 38.103.63.60

Username
Password
New files
Friends
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo