How to cretae custom attribute and let the user add data into it and display on another page
Permalink 1 user found helpful
IF i want to add data for properties then how would i create content type like drupal in concrete 5 and I want end user to enter data into it and them how to display on another page... can anybody please guide me.
what you might be looking for is this.
you can add "page types" which is kind of a "content type". easiest way to add a page type is to copy the default.php file in your theme and rename it to my_page_type.php or whatever and then add this to the page type list in the dashboard. once this is done you can click on the composer link for that page type and select what attributes to use. you can create your own attributes of course as well.
once all that is done you can create pages of your new "content type" using the composer and fill out any needed attributes etc.
to display these values on the page itself you would use $this->getAttribute('my_attribute') in the my_page_type.php file.
cheers. i was probably way off with what you were asking :)
you can add "page types" which is kind of a "content type". easiest way to add a page type is to copy the default.php file in your theme and rename it to my_page_type.php or whatever and then add this to the page type list in the dashboard. once this is done you can click on the composer link for that page type and select what attributes to use. you can create your own attributes of course as well.
once all that is done you can create pages of your new "content type" using the composer and fill out any needed attributes etc.
to display these values on the page itself you would use $this->getAttribute('my_attribute') in the my_page_type.php file.
cheers. i was probably way off with what you were asking :)
Well Thnak you so much... I got the solution..
Other than that, have you checked out the documentation guide?
http://www.concrete5.org/documentation/developers/attributes/overvi...