-
1. Re: How do I put text into an Edge File that clients can edit easily afterwards
resdesign Dec 20, 2012 6:52 AM (in response to alayna11)We talked about a json file yesterday.
Here is how you insert it:
$.getJSON('bill.json', function(data){
// you code here
});
the json data structure could be:
[
{
"variable1": "text",
"variable2": "text"
},
{
"variable1": "text",
"variable2": "text"
},
{
"variable1": "text",
"variable2": "text"
}
]
I can post an example if you need.
There is also a good tutorial here: http://www.gotoandlearn.com/play.php?id=168
-
2. Re: How do I put text into an Edge File that clients can edit easily afterwards
alayna11 Dec 20, 2012 8:14 AM (in response to resdesign)OK where does this get inserted?
I put it on the stage actions, composition ready - but that just produced a blank stage.
An example I can load straight into Edge would be very helpful indeed. Thanks in advance then.
-
3. Re: How do I put text into an Edge File that clients can edit easily afterwards
resdesign Dec 20, 2012 9:12 AM (in response to alayna11)As a matter of best practice, I put all the code in Composition Ready. See the example file which I made for testing json for a world history course.
-
4. Re: How do I put text into an Edge File that clients can edit easily afterwards
resdesign Dec 20, 2012 1:05 PM (in response to alayna11)Also, here is a good site to check you json file that your users could use if you give them access to that file. This will show you any problem with the file which is good when you have a lot of data and you may forget a comma or a bracket, etc...
-
5. Re: How do I put text into an Edge File that clients can edit easily afterwards
alayna11 Dec 21, 2012 5:34 AM (in response to resdesign)I put the code you pasted into composition ready but I can see how I can make this into something that will allow users to update text on their websites.
Ta for the tutorials, they are referring to adding images to a website, same as your download zip (thanks kindly) but I am trying to find out how I can have users easily edit their websites on a server with cpanel (with Edit - not html Edit) - I just want to be able to Edit text on a finished file. So users can FOR EXAMPLE - update food items for a menu for a Restaurant website.
If anyone from ADOBE EDGE can point me to instructions in the manual on this I would appreciate it. I have looked through the resources and not found any for this very basic requirement. I am sure it can do it.
cheers
-
6. Re: How do I put text into an Edge File that clients can edit easily afterwards
sarhunt Dec 25, 2012 12:08 PM (in response to alayna11)Hi alayna,
If you chose the "Publish as Static HTML" option from the publish dialogue your client can edit the text inside the .html file. Keep in mind that EA contents aren't flexible in the sense they will reshuffle and move around to accommodate increased or decreased text width.
Sarah
-
7. Re: How do I put text into an Edge File that clients can edit easily afterwards
alayna11 Dec 26, 2012 10:19 PM (in response to sarhunt)Hi Sarah
That is what I tried to do in the first place, then i was surprised that it did not work, I tried what u suggested a number of times.
Published a basic file with a text box on it and some text in it AS STATIC HTML. Then I opened that file in notepad++ - changed the text and saved it. It looked like it was changed on the notepad file but when u preview in browser it was not changed.
I assumed because the text is like a symbol contained in Edge - so not editable externally. Have u tried what u are suggesting? When I did it it did not work.
alayna
-
8. Re: How do I put text into an Edge File that clients can edit easily afterwards
alayna11 Jan 2, 2013 12:13 AM (in response to sarhunt)Hi Sarah
I tried to do what you suggested before and after your suggestion too, i cannot edit the text afterwards, even to delete some of the text from a text block made in Animate will not work. It appears to change, but when you load it in the browser it still has the text that exists in Edge Animate.
Do you have some more advice on how to do what you are suggesting or can you give some instructions, the text boxes don't appear to be editable after by any other editor ie notepad, dreamweaver etc.
I am using a work around by just bringing in edge animate components I have made , ie navigation, slideshow etc, into dreamweaver or notepad, then integrating snippetmaster so my clients can then edit just their text.
If i could do it all in animate that would be better though.
thanks,,.. alayna
-
9. Re: How do I put text into an Edge File that clients can edit easily afterwards
AmintaAdobe Jan 3, 2013 4:07 AM (in response to resdesign)Hi Resdesign!
Your code is very useful to learn how to use Json in Adobe Edge Animate!
But I have a question: why you use ( i ) as argument of the function UpdateInfo and when you recall it you use ( index )?
$.getJSON('slides.json', function(data){
//for(var i=0; i<data.length; i++){
function updateInfo(i){
sym.$("photo").css({"background-image": "url('"+data[i].image+"')"});
sym.$("pillar").html(data[i].pillar);
sym.$("what").html(data[i].what);
// position
//}
}
index = -1;
sym.$("btn").click(function(){
index++;
if (index>=5){
index = 0;
}
updateInfo(index);
});
});
Many thanks for your attention!
Davide
-
10. Re: How do I put text into an Edge File that clients can edit easily afterwards
resdesign Jan 3, 2013 5:24 AM (in response to AmintaAdobe)I guess I really should have used i instead of index which would be more logical. In this case it works since the variable still cycles between 0 and 5.
-
11. Re: How do I put text into an Edge File that clients can edit easily afterwards
AmintaAdobe Jan 3, 2013 8:39 AM (in response to resdesign)Yes, I've tried and it works too!
Thanks!
Davide




