Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to modify dg_icon_template without PHP filter #27

Open
thenadz opened this issue Aug 9, 2015 · 0 comments
Open

Allow users to modify dg_icon_template without PHP filter #27

thenadz opened this issue Aug 9, 2015 · 0 comments

Comments

@thenadz
Copy link
Owner

thenadz commented Aug 9, 2015

The PHP filter will still be available, but users will be able to avoid needing to write PHP in modifying the output structure.

This functionality will be exposed through the settings interface, possibly by way of a dialog where each of the special markup tags are available to insert by way of buttons (maybe along the top of the text box where the user can edit the HTML directly). Alongside the text editing box could be a live preview of what the output of the HTML & special tags would look like.

%link%: The URL that will be loaded when the user clicks the icon.
%target%: The target attribute for the anchor tag (e.g.: _blank, _self).
%img%: The URL pointing the the image that will be displayed.
%title%: The human-readable title of the attachment.
%title_attribute%: The escaped title (above), safe for using HTML tag attributes.
%description%: The attachment description (only present when rendering descriptions).
%extension%: The document file extension.
%size%: The human-readable file size formatted by size_format.
%path%: The system path pointing to the document.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant