assign default attributes from package
PermalinkI am trying to create a package that installs many things at once.
Never done this before and still getting my head arround C5, but loving it as well.
So I have a package that installs:
a few single pages
a few blocks
one theme
one page type
creates a set of atributes name ex(theme atributes)
creates atributes ex(page thumbnail)
All installs very well however i would like to assign the set of attributes created to the page type created and make then default for that page type.
Any ideas of how to do this?
Regards,
Paulo Carvalho
The attributes show properly, but i still need to assign them to a page type.
I am looking to make this assignment on package install so that the user wont need to.
For example this would allow to create a theme with many hardcoded blocks.
And the user would be able to turn thoose hardcoded block on by enable or desable an attribute.
So if there is a way to set this attributes as default for a page type all a user needs to do is when creating a new page with a specific page type he can then tick if he wants that specific functionality.
In the same way a user chooses EX(exclude from auto nav), a user would be able to choose EX(turn on built in features)
Steph
imagine the following:
Theme for showcasing photographer portfolio.
One page type named project.
In that page type user will have as default the following attributes:
project thumbnail
project description
etc
When coding the page type you can hardcode thoose attributes and because when the user creates a page they would be available to choose,when done the new page whould display by default all that data.
Steph
Regards
Paulo Carvalho
Steph
When approved I will post it here for future reference.!
For future reference I have wrote a how-to describing how to do this!
http://www.concrete5.org/documentation/how-tos/developers/how-to-in...
Steph
Steph