User tests: Successful: Unsuccessful:
It's not possible to save HTML in description fields.
The issue was reported at german forum by user fexes
http://forum.joomla.de/index.php/Thread/818-HTML-Tags-in-Login-Beschreibungstext/?postID=5531#post5531
and I was asked to create a PR by another user.
<p>Some text.</p>
<p>Some more text.</p>
This is the old behavior known from Joomla 1.5. (Joomla 2.5? I don't know).
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Milestone |
Added: |
Offline message: There we have already a filter="safehtml"
Offline message: There we have already a filter="safehtml"
That's what I meant, yes
Easy | No | ⇒ | Yes |
Category | ⇒ | UI/UX |
I add a new menu item of type Users>Login Form and I put all these tags in the description field: https://github.com/cbracco/html5-test-page
After applying the patch all tags are kept.
I have tested this item successfully on 736c807
Works as expected thanks @bertmert
Status | Pending | ⇒ | Ready to Commit |
RTC now thanks.
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-10-02 11:48:09 |
Closed_By | ⇒ | rdeutz |
Labels |
Removed:
?
|
Hi - good timing as I just came across this limitation and would like to add some links to the 'login description text' on my J3.4.4 site. I'm new to GitHub but wonder if someone could explain to me which file/s in J3.4.4 need to be modified using the modifications as described in this thread to get basic HTML tags to work? And where can I view the code modifications?
Also when J3.4.5 is made available, how do I know if the changes will be included in the public distribution, and hence overwrite my joomla core hacks (which is fine so long as the functionality is retained etc).
@supergrug see: https://patch-diff.githubusercontent.com/raw/joomla/joomla-cms/pull/7939.diff
This changes come with the next release.
There is a file changed tab above, but this might work in this case but sometime PR rely on other PR and you can't see what is needed to make it work. I would suggest not to hack the core and just wait or create a template override.
@rdeutz @zero-24 Thanks for the very speedy replies. So I went into the Template manager and created a template override for com_users/login, which was copied to /templates/yoo_peak/html/com_users/login. First time I've done this so it might be expected behaviour, but the default.xml file didn't copy across into this directory, just the other three php files from the /components/com_users/views/login/tmpl/ folder. As the .xml file is the one I need to modify, I manually copied that out of the core into the override, made the changes as suggested in this thread, but the HTML code is still being stripped out. So I'm figuring that the override, being in the front end template, doesn't have any impact on the back end of Joomla? Is there such a thing as a back end override, or in this instance is a core modification necessary?
@supergrug
Change the core file directly. As changes are merged already for J3.4.5 that's OK.
(You can create an additional menu item via template override but that needs some more steps, some more changes in xml and needs renaming of files in the override. I think you don't want that.)
Milestone |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Fine with me. We do the same thing for the "Site Offline" message.