eZ Community » Forums » eZ Publish 5 Platform » URL with "_fragment" keyword
expandshrink

URL with "_fragment" keyword

URL with "_fragment" keyword

Monday 28 October 2013 1:16:02 pm - 6 replies

Hi,

I have a problem with the links generated at the template embed.tpl,

I still have a link with the keyword "_fragment" when I insert an object in the Online Editor,

suggestions please?

Thank you

Tuesday 29 October 2013 11:11:54 am

Hi Soufian

see this thread: http://share.ez.no/forums/ez-publish-5-platform/not-working-url-with-_fragment-phrase - unfortunately the problem seems not yet pinned down to its exact cause.

I resolved it by creatinga TWIG template, but this was only feasable as this embed stuff was the last remaining legacy template in my project.

Regards, Donat

Modified on Tuesday 29 October 2013 11:12:58 am by Donat Fritschy

Tuesday 29 October 2013 11:47:41 am

Thanks Donat,

I had already read this posts, it's good but it not shows the causes of the appearance of the "_fragment" keyword,

I have many templates that I have not yet migrated to eZ5, so I am obliged to know the source of this problem,

Thank you,
Soufian

Tuesday 29 October 2013 11:52:36 am

It's probably due to the fact that embed.tpl is rendered in a sub-request, which is called through _fragment prefix (mainly for ESI/Hinclude usage). Could you maybe post a gist ?

Tuesday 29 October 2013 1:46:09 pm

As mentionned before, it is not easy to reproduce the behaviour. So much for the circumstances at my installation:

  • eZ Community 2013.07
  • TWIG full view article template
  • XML field rendered with {{ ez_render_field( content, 'description') }}
  • legacy embed file template (as in ezdemo) drawn through standard override rules (as in ezdemo)

Hope this gives additional clues.

Regards, Donat

Tuesday 29 October 2013 4:38:33 pm

Hi,

Thank you for your interests,

For the moment, I don't override any templates, just one with XML field rendered ( {{ ez_render_field( content, 'description') }} ), is the same probleme as Mr. Donat, (http://share.ez.no/forums/ez-publ...-with-_fragment-phrase#comment81820).

I add an object with a view embed in an online editor, and I validate.

This object, at Back Office displays with the correct link, but on the Front Office displays a link with the word "_fragement",

I use the version 2013.9

Thanks,
Soufian

Tuesday 03 December 2013 4:47:10 pm

Hi,

i have also the same problem when rendering the body :

 {{ ez_render_field( content, 'body' ) }}

i have some images in the Body XML Block. It appear only the name and this html code:

 <div class="ezxmltext-field"><div><a href="/_fragment">MY IMAGE NAME</a></div><p> My body TEXT correct.</p>

It appear only the image name inside <a> tag.

This happen only in the prod. in dev the <img tag will be appear correctly.

 

Using eZpublish 5.2

Modified on Tuesday 03 December 2013 4:48:13 pm by Ramzi Arfaoui

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from