Search
Other Quick Index questions
Forum

Quick Index on custom field

Paolo G's Avatar Paolo G
Hi,

I have a question regarding the use of Quick Index. I divided the content of the article into two parts to insert a photo gallery in the middle. The first part of the content is in the Joomla Full Text field, the second part (after the gallery) is in a custom field.

If I act in this way, Quick Index only detects the tags of the first part, while those of the second part after the gallery are completely missing: is there a way to solve this?

Confidential information:
(hidden)


Many thanks
Peter van Westen's Avatar Peter van Westen ADMIN
How are you inserting the gallery in between those 2 parts?
Please post a rating at the Joomla! Extensions Directory
Paolo G's Avatar Paolo G
Hi Peter,

I did that with Joomla custom fields, shown through Yootheme Pro
Peter van Westen's Avatar Peter van Westen ADMIN
It would probably be possible to do what you want using Articles Anywhere Pro.

Then you can just place the gallery custom field right into the article text:
{article}[my-gallery-field]{/article}

And either just have the second part of the text in the main article editor too.
{index}

First part...

{article}[my-gallery-field]{/article}

Second part...

Or output that through Articles Anywhere too.
{index}

First part...

{article}
[my-gallery-field]

[second-part-field]
{/article}
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
PS: If you go this route, make sure the Articles Anywhere system plugin is ordered BEFORE the Quick Index plugin:
See: regularlabs.com/blog/242-plugin-order-is-important
Please post a rating at the Joomla! Extensions Directory
Paolo G's Avatar Paolo G
It would probably be possible to do what you want using Articles Anywhere Pro.

In that case I think I would lose control of the gallery generated with Yootheme.

Looking closer, it seems that it's not the custom field that divide the article to disturb Quick Index, but the gallery.

On the following page you can see that Quick Index works well across fields: in this case I even had to put {/index} at the end of the last field to stop it:

Confidential information:
(hidden)


Instead, in the page already viewed, the gallery is enough to stop Quick Index, and that should be the only relevant difference.

Confidential information:
(hidden)


Is it possible to make it work anyway?

Best regards
Peter van Westen's Avatar Peter van Westen ADMIN
Not sure.

Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Paolo G's Avatar Paolo G
With pleasure, many thanks

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Not sure why it works differently on one page vs the other. For some reason, only part of the article text is passed to the Quick Index plugin during the rendering of the article.

Anyway, I have a way you can make sure Quick Index is executed AFTER the whole article, fields and modules are rendered.

I replaced the {index} & {/index} tags in that article with [INDEX] & [/INDEX].
Quick Index doesn't see these as its tags and will ignore them.

Then I made a ReReplacer replacement to replace those with the actual Quick Index tags. But it will do that on the entire body of the HTML output (so after the article & module rendering stage).

After that Quick Index gets triggered again and sees the Quick Index tags, which it then handles.

You can see the result in the British Museum page.

PS: You can of course use a completely different syntax for the placeholder tags instead of the [INDEX] & [/INDEX]. For instance:
<!-- indice iniziale --> & <!-- indice finale -->
Please post a rating at the Joomla! Extensions Directory
Paolo G's Avatar Paolo G
Hi Peter,

Where I come from, the proverb says that "need is the mother of wits", or something like that 😉

Many thanks for the brilliant idea, your extensions are really must haves!!

Best regards
Peter van Westen's Avatar Peter van Westen ADMIN
Happy this works for you 🙂
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription