Search
Other Articles Anywhere questions
Forum

Links in Empty attribute

Vinny Hebert's Avatar Vinny Hebert
Can you put a URL HTML in the Empty attribute? If so, how?
Peter van Westen's Avatar Peter van Westen ADMIN
Yes. Have you tried?
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
Yes. Several different ways. The link comes out as a cursor, not the hand, and when I click on it it does nothing.
Peter van Westen's Avatar Peter van Westen ADMIN
All working fine for me.
You should be able to just create the link as normal in your editor. Or type out the HTML for it in the empty="" attribute.

So these both work:
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
This is what I put
empty="Currently there are no events on this page. <a href="/booking">Request information</a> to book your own event!"

This is what it's outputting:
Currently there are no events on this page.  <a href\="\&quot;/booking\&quot;">Request information</a> to book your own event!

Confidential information:
(hidden)


Is JCE Editor messing things up because I thought I shut that part off.
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
That's the one I'm on.
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Oh, btw, is this Joomla 3 or Joomla 4?
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
Sorry Joomla 4
Peter van Westen's Avatar Peter van Westen ADMIN
I tried it on both Joomla 3 and 4. And both with the same working output.

Can you try to simplify it first and do something like this?
{articles category="Empty Category" empty="<a href="/some/url">This is a link</a>"}[title]
{/articles}
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
So I've shut off JCE Editor and used TinyMCE. Shut that off and just using Editor - None. And it's still the same thing.
Confidential information:
(hidden)
It's the bottom of that page I just copied and pasted your code directly in it and as you can see the mouse pointer does not change to a hand but the browser styling is still as if it is a link.


Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases

PS: I disabled the experimental 'Protect Shortcodes' option in the JCE profile. As it is pretty much useless on how it handles tags like {articles}.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
Whatever you did Peter, fixed the issue. Thank you.
Peter van Westen's Avatar Peter van Westen ADMIN
Ok, great 🙂
The fix will be included in the next release.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
So a problem with using <p> in there. They are not wrapping on a mobile device (it runs off the screen). I have to use the <p> tags because there is no space between the link and the next word. the <p> tag fixed that, but created this other problem.
Peter van Westen's Avatar Peter van Westen ADMIN
Please check if the html output is as you expect it to be, giving the code you give Articles Anywhere.
If it is, then Articles Anywhere is doing what it should.

How your template and CSS styling deals with elements is outside the control of Articles Anywhere.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
So I changed the box to use a styling I already used on the page to see if it was the other styling.

Confidential information:
(hidden)


As you can see both red boxes are doing different things. The one under public events is in the empty tag.
Peter van Westen's Avatar Peter van Westen ADMIN
Sorry, but this is a CSS question and has nothing to do with Articles Anywhere.

For more info about how elements get their styling, you can use the Element Inspector of your browser.
You can see this is caused by the "uk-grid" div you have around it.
Ask your template developer for more help on how to use their css classes and elements.
Please post a rating at the Joomla! Extensions Directory
Vinny Hebert's Avatar Vinny Hebert
After reading your post I realized that because of the grid, I had to include the "row" information in the empty tag so it would render it as a full row. Thanks for triggering the answer. All things are working as they should and Articles Anywhere continues to rock.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription