editing source code / code block |
Post Reply | Page 12> |
Author | |
tomender
Newbie Joined: Mar 07 2019 Location: austria Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: Mar 20 2019 at 3:18pm |
Hi,
I searched the forum but couldn´t find an answer. How can I edit the source code? I can add code blocks but I cannot edit existing ones. Why? or how? Thanks for the help... |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
Hi, If you use another editor to modify the HTML produced by OpenElement, OE will overwrite your code every time you save the page. Can you be more specific on what you are trying to achieve? |
|
todi79
Newbie Joined: Mar 27 2020 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
i have the same problem.. how did you solved ?
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
The question is what are you trying to achieve?
|
|
BanditMIS
Newbie Joined: Mar 07 2024 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
As an example of what I would like to achieve by directly editing the HTML code generated by OE:
I want the ability to paste basic HTML & JS code that I have developed and tested outside of OE into an OE project page. It would be great if I could edit OE's HTML, CSS, JS & PHP files in an IDE like Notepad++, test and debug them, and then get OE to reread and update its version of the files (maybe with a precautionary 'are you sure' message). I recognize that I could break my website with these abilities, but I also recognize that you have no liability for such problems, and I would rather be treated as an adult who is responsible for his own mistakes. |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
When you drop an element on a page you can see it's ID in the properties pannel. You can use it in your script.
To paste html code into a page you can use the code block element To add JS, CSS, etc to your page you can use the source code button on top of the working area. If you use these to add your own code, OE will know where it is and will keep it.
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
I used some of these techniques in this video
Edited by Hobby001 - Mar 07 2024 at 3:49pm |
|
BanditMIS
Newbie Joined: Mar 07 2024 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks!!! I did use a code block to insert my scripts, but I couldn't see a way to add the IDs and 'onclick' instructions to the individual radio buttons. I had written the scripts in Notepad++ assuming I could simply modify the HTML code in OE's code display, and was a bit frustrated when it wouldn't accept any changes. With a little more preplanning, I'm sure I can get my page behaving the way I want it to. Now I just have to incorporate PayPal.
Lets face it, the loss of the help WIKI XML files has gutted OE's lasting appeal; they were amazing! Sad considering how many OE recommendations you see on the internet even today. OE is a fantastic tool, but it's not entirely intuitive. I don't suppose you know where I might download them. I would have done so years ago just to save me the trouble of going online to see them, but capturing them topic-by-topic seemed a silly waste of time when they were readily available. Thank you again. Your response was unexpectedly quick. It's great to know the forum is still active. Dennis Hill |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
You can use jquery instructions https://api.jquery.com/click/
The ID being the OE ID starting with WE Or you can use custom classes instead of ID it's up to you. I remember that someone told us about a back-up available on the web but I have to make some researches, I will get back to you later on it
|
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6195 |
Post Options
Thanks(0)
|
You can see what you can get on wayback machine
|
|
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |