Adding custom HTML to admin item view #94
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#94
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Custom codes is a phenomenal addition, adding a lot more flexibility in the development of components.
One question that I have is the best way to add custom codes for HTML to a location within a view. An example is with Google Map/Geocoding. The geocoding was easily added as custom codes, and works flawlessly. However, I want to display a map showing the location that was geocoded. I can add the following a custom codes:
and this works, except that it adds /[INSERTED$$$$]//5/ and /[/INSERTED$$$$]/ in the view, which isn't the desired effect.
Any suggestions?
Yes there is a few custom code concepts, did you watch the two videos we released in relation to this?
There are two types of custom code placeholders, if you open a custom code item you will see Comment Type (used in placeholder) with these two options PHP/JS & HTML
Switching between these will change the documentation at the bottom of the text area, that looks like this:
Then to prevent the Custom Code Placeholders from being added to the code on compilation, just on the compiler page set the add custom code placeholders to NO.
You can also in the component, change the global settings of the component by setting the add custom code placeholders to NO.