I know that it's not recommended in any way but is there a way/method to set a we:href element where the value is either an internal id or an external url? Something similar to setElement().
Thank you in advance.
Set a we:href element via PHP
Re: Set a we:href element via PHP
Hi,
not sure understaning your question correctly, but you can set any var in webEdition with <we:setVar to="xy" nameto="xy">.
Timo
not sure understaning your question correctly, but you can set any var in webEdition with <we:setVar to="xy" nameto="xy">.
Timo
webEdition Partner - https://www.blickfang-media.com
Ehemals im Vorstand des webEdition e.V.
Ehemals im Vorstand des webEdition e.V.
Re: Set a we:href element via PHP
I want to set we:href using php code.biwaMedia hat geschrieben: not sure understaning your question correctly
Re: Set a we:href element via PHP
try having a look at the attributes for the tag while printing it
and just do it the other way to set it
- untested -
Code: Alles auswählen
p_r(we_unserialize($GLOBALS['we_doc']->getElement($yourHrefName)));
Code: Alles auswählen
$GLOBALS['we_doc']->setElement(we_serialize($yourHrefAttributesArray));
webEdition Partner - https://www.blickfang-media.com
Ehemals im Vorstand des webEdition e.V.
Ehemals im Vorstand des webEdition e.V.
Re: Set a we:href element via PHP
sorry. this is not correct. href's are not serialized.
Each element (_we_jkhdsf_int,_we_jkhdsf_intID,_we_jkhdsf_extPath) is set separately and has to have type "href". Please assure to use
where type has to be href and key is bdid on numeric types, as of elements int & intID
as already stated, it is not recommended to use this unless you know exactly what you are doing. Be aware that this syntax & elements are internal and subject to change without any notice between versions.
Each element (_we_jkhdsf_int,_we_jkhdsf_intID,_we_jkhdsf_extPath) is set separately and has to have type "href". Please assure to use
Code: Alles auswählen
setElement($name, $data, $type = 'txt', $key='dat')
as already stated, it is not recommended to use this unless you know exactly what you are doing. Be aware that this syntax & elements are internal and subject to change without any notice between versions.
webEdition-Kern-Entwickler
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste