Help Center

Powered by Minitek FAQ Book
Loading...

FBP one question assigned to multiple topics

MA
Martin AndersenPosted 3 years ago

My products use FaqBookPro for instructions. Lets say all of them have a common part in the explanations. Is it possible to assign a question to multiple topics (products). That way we could have only one page to update when there is a change. Now i have many copies of the same question one per topic.

Also, could you check this topic and let me know if there is a fix for that? Im using v3.7.1 and i would like to update if there si a fix for that.

Thanks!

Loading...
0
#2796556 views

11 answers

M
MinitekPosted 3 years agoModerator

Hi there,

No, this is not possible at current version. There is no fix that.

MA
Martin AndersenPosted 3 years ago

So, its not possible to have SEF links inside FBP? Or it has not been fixed yet?

Thanks

M
MinitekPosted 3 years agoEdited 3 years agoModerator

I'm not sure I understand what you mean by that.

This forum is built with FAQ Book Pro and this is a SEF link.

MA
Martin AndersenPosted 3 years ago

All this is covered in this thread, even a solution was proposed in the last few messages:
https://www.minitek.gr/support/forum/joomla/minitek-faq-book/images-not-loading-when-ajax-browsing


A resumed version would be:

If i insert this link for example:
index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=7&virtuemart_product_id=604
My website convert it to:
http://ideaalab.com/es/shop/fuentes-de-energia/cargadores/cargador-lipo-usb-detail

This is the normal Joomla working, and works fine for articles, Virtuemart, Easyblog, etc...

In FBP if the question is loaded directly trough URL (direct link) or reloading the page, then the URL will be SEF, no problem. But if the question is accessed trough AJAX browsing, then the links will not be converted to SEF. This is because when loading the content through AJAX the URLs are not parsed and converted by joomla.

You can check the problem following this steps:

  1. Go to this link: https://ideaalab.com/en/support/product-instructions/controladores-de-servos
  2. Hover this link, and you will notice its a SEF link that points to:
    https://ideaalab.com/en/shop/servomotors/controllers/1-servo-controller-detail
  3. Now in the same page, go inside any topic using the left navigation panel, and then go back to the same place
  4. The page will load with AJAX, its the same page, but this same link will now be non SEF. Now points to:
    https://ideaalab.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=20&virtuemart_product_id=537

As you see, when content is loaded without reloading, the URLs are not converted to SEF.

My website developer told me a few years ago, that using the following code in the template will solve the problem, which i did and worked fine. You told me in that you will add it to the next version so there was no need to modify the template, but was not added yet.

$doc->base = juri::root();

Thanks!

M
MinitekPosted 3 years agoModerator

Ok, I remember now. No, this has not been fixed. The component will not parse non-sef urls.

MA
Martin AndersenPosted 3 years agoEdited 3 years ago

A "1 line of code" solution was proposed in last messages of this thread:
https://www.minitek.gr/support/forum/joomla/minitek-faq-book/images-not-loading-when-ajax-browsing

Is not possible to fix?

M
MinitekPosted 3 years agoModerator

This was already added a few years ago. It's the parameter "Fix relative links" in the component configuration. While it solves some other issues with relative and absolute links, it does not solve the url parsing issue.

When your developer added this code to your website, did the urls work correctly?

MA
Martin AndersenPosted 3 years ago

At that time the fix worked fine. This is a skype conversation with my developer from that date:

M
MinitekPosted 2 years agoModerator

I had added this code some time ago (you can see it in the file faqbookpro.php) but it does not help parsing the urls. I haven't figured out a way to do this efficiently yet. I'll keep looking.

MA
Martin AndersenPosted 2 years ago

I see. To be honest, last time ive added the code to the template and it worked, but this time tried again and didnt work.

Check this, maybe it helps: https://stackoverflow.com/questions/19955283/ajax-url-not-working-when-sef-settings-is-on-in-global-configuration-of-joomla

M
MinitekPosted 2 years agoModerator

Unfortunately this will not work.