Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hi,

it seems that inline editing (or pop-up) doesn't work with dual languages website

with a <h3 <cms:inline_edit 'introblocktitle_<cms:show my_lang />' /> class="fontg"/><cms:get "introblocktitle_<cms:show my_lang />" /></h3>
I got a Field not found: introblocktitle_<cms :show my_lang />
(it does work with introblocktitle_en though)

I tried with cmd:get as well, it doesn't work too

It seems it doesn't get the session variable.

is there a way around that?

Regards,
Paolo
Hi Paolo,

I think it is a case of incorrect quote usage (docs/concepts/setting-parameters.html) in:
Code: Select all
<cms:inline_edit 'introblocktitle_<cms:show my_lang />' />
Try:
Code: Select all
<cms:inline_edit "introblocktitle_<cms:show my_lang />" />
Hi Cheesypoof,
Now I feel dumb! Sometime it's just so simple...

Thanks a lot,
Paolo
Sometimes it just takes another pair of eyes to spot something. We've all been there Paolo ;)
Hi Cheesy,
since you are here, I have a more difficult one
(I'm trying to implement the online editing for the first time!)

I have this code in my footer.php
<cms:embed code="<cms:get_custom_field 'footer_left' masterpage='snippets.php' />" />

I tried and edit it with:
<cms:popup_edit "footer_left" />

but it returns a: Field not found: footer_left
I of course edited it in a html block element <p>, but it's the same.

I tried as well
<p <cms:inline_edit "footer_left" masterpage='snippets.php' />><cms:embed code="<cms:get_custom_field 'footer_left' masterpage='snippets.php' />" /></p>
and
<div <cms:popup_edit 'footer_left' masterpage='snippets.php' />><cms:embed code="<cms:get_custom_field 'footer_left' masterpage='snippets.php' />" /></div>

Any idea?

And it doesn't seems to work with repeatable regions as well. Is it normal?
Sorry, it works with

<cms:pages masterpage='snippets.php' >
<cms:embed code="<cms:get_custom_field 'footer_left' masterpage='snippets.php' />" />
<cms:popup_edit 'footer_left' />
</cms:pages>
Still with the on page editing, I got a

ERROR! Unknown tag: "get_session"

when I tried to embed the enable/disable on page editing

It's not my day...
Hi Paolo,

I think you'll have to enable the 'sessions' addon by uncommenting the following statement in couch/addons/kfunctions.php
require_once( K_COUCH_DIR.'addons/cart/session.php' );
8 posts Page 1 of 1