Updated 4a. JCB Demo Component Directory, Folders and Files (markdown)
parent
9e3f473d88
commit
2994592bdb
@ -393,12 +393,11 @@ A button is called a component in the UIkit and there are many others that encap
|
||||
JCB adds this and other classes by adding the UIkit files to:
|
||||
* \media\com_demo\uikit-v2 in the Joomla! Demo installation package.
|
||||
|
||||
For details see the link and list of UIkit components and code required to implement them as was done below in the area in JCB labeled Site View's Default View. Much of the code is straightforward PHP. Use the view's $this reference to the current object to get the value of an element on the page. For example, the template for the JCB Demo component exposes the logged in user's id in $this. The value of the id is obtained using $this->user->id and a good explanation of what $this is can be found [here ](http://www.php.net/manual/en/language.oop5.basic.php). Other values are also available and observe the code reuse of Joomla! API classes, plus standard HTML. AS seen in the example, JCB also uses tags like ComponentHelper.
|
||||
|
||||
For details see the link and list of UIkit components and code required to implement them as was done below in the area in JCB labeled Site View's Default View. Much of the code is straightforward PHP. Use the view's $this reference to the current object to get the value of an element on the page. For example, the template for the JCB Demo component exposes the logged in user's id in $this. The value of the id is obtained using $this->user->id and a good explanation of what $this is can be found [here ](http://www.php.net/manual/en/language.oop5.basic.php). Other values are also available and observe the code reuse of Joomla! API classes, plus standard HTML. As seen in the example, JCB also uses tags like ComponentHelper.
|
||||
* Looking Site View
|
||||
|
||||
The code to do this is located in JCB in the view prefaced by:
|
||||
Custom Script - Add PHP (after getting the items) * - Yes - PHP getItems Method - Target (array) $items values *
|
||||
The code to do this is located in JCB in the view prefaced by:
|
||||
* Custom Script - Add PHP (after getting the items) * - Yes - PHP getItems Method - Target (array) $items values *
|
||||
|
||||
## [JCB - Editing the Site View](/administrator/index.php?option=com_componentbuilder&view=dynamic_get&layout=edit&id=36)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user