- Posts: 12
COMMUNITY FORUM
SOLVED: Trying to change frontend edit popup
- Nicholas Loggie
- Topic Author
- Offline
- New Member
Less
More
12 years 4 months ago - 12 years 4 months ago #66547
by Nicholas Loggie
SOLVED: Trying to change frontend edit popup was created by Nicholas Loggie
Hi,
I am trying to find where to make changes to the code of the modal popup that allows frontend editing....
Anyone please!
Thanks
I am trying to find where to make changes to the code of the modal popup that allows frontend editing....
Anyone please!
Thanks
Please Log in or Create an account to join the conversation.
- Nicholas Loggie
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
12 years 4 months ago #66548
by Nicholas Loggie
Replied by Nicholas Loggie on topic Re: Trying to change frontend edit popup
Hi
I'm desperate for this - I keep changing
components/com_k2/templates/default/itemform.php
But nothing seems to change?
:S
I'm desperate for this - I keep changing
components/com_k2/templates/default/itemform.php
But nothing seems to change?
:S
Please Log in or Create an account to join the conversation.
- Katharina
- Offline
- Senior Member
Less
More
- Posts: 54
12 years 4 months ago #66549
by Katharina
Replied by Katharina on topic Re: Trying to change frontend edit popup
Never change the original K2 files - after the next update they are gone :ohmy:
Use template override instaed:
Use template override instaed:
Please Log in or Create an account to join the conversation.
- Nicholas Loggie
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
12 years 4 months ago #66550
by Nicholas Loggie
Replied by Nicholas Loggie on topic Re: Trying to change frontend edit popup
Hi,
OK - understood but which of the files do I change to edit the popup edit / add item page?
Thanks
N
OK - understood but which of the files do I change to edit the popup edit / add item page?
Thanks
N
Please Log in or Create an account to join the conversation.
- dido76bg
- Offline
- New Member
Less
More
- Posts: 9
12 years 4 months ago #66551
by dido76bg
Replied by dido76bg on topic Re: Trying to change frontend edit popup
It all depends which pop up you want to change.
category.php // category_item // item.php ....
Search for
<a class="modal" rel=" ...(1)..." alt="...(2)...">
and replace it with
<a class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-100, y: window.getSize().size.y-100}, onShow:$('sbox-window').setStyles({'padding': 0})}" href=" ...(3)... " alt="...(2)...">
where ...(1)... and ...(2)... and ...(3)... are some texts
Dont forget to keep the original texts in ...(2)... - alt or title attribute and ...(3)... - the href attribure.
category.php // category_item // item.php ....
Search for
<a class="modal" rel=" ...(1)..." alt="...(2)...">
and replace it with
<a class="modal" rel="{handler:'iframe',size:{x:window.getSize().scrollSize.x-100, y: window.getSize().size.y-100}, onShow:$('sbox-window').setStyles({'padding': 0})}" href=" ...(3)... " alt="...(2)...">
where ...(1)... and ...(2)... and ...(3)... are some texts
Dont forget to keep the original texts in ...(2)... - alt or title attribute and ...(3)... - the href attribure.
Please Log in or Create an account to join the conversation.
- Nicholas Loggie
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
12 years 4 months ago #66552
by Nicholas Loggie
Replied by Nicholas Loggie on topic SOLVED Re: Trying to change frontend edit popup
Thanks for your help guys
Turns out that I had the MultipleImage plugin on.
When this is turned on all the custom templating seems to completely stop working....... so I couldn't edit the itemform.php file......
Going to contact the developer to see how and why......
(For quite a while I thought I had actually flipped......) :)
Turns out that I had the MultipleImage plugin on.
When this is turned on all the custom templating seems to completely stop working....... so I couldn't edit the itemform.php file......
Going to contact the developer to see how and why......
(For quite a while I thought I had actually flipped......) :)
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Offline
- Junior Member
12 years 3 months ago #66553
by Manoj Goel
Replied by Manoj Goel on topic Re: Trying to change frontend edit popup
Hi BG Fresh Design,
Your provided code simply open the Itemform in full page instead of Component/content area.
How to show the form only in component/content area??
Your provided code simply open the Itemform in full page instead of Component/content area.
How to show the form only in component/content area??
Please Log in or Create an account to join the conversation.