Topic Closed

Hey guys,
I have some difficulties managing the cms. I am using 2.3.3...

- Could you tell me how to manage the new sections by adding personal ID to the div (editable_area GPAREA filetype-text)?

- The website's content, I have designed, is smaller than the one of the demo version. Is there a way to make the cms open the edit content in the "dialog" window that the administration is using?

Thanks

 

8 years ago#3431

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins

Hi Peter,  do you mean,  how to load and put a different page content to #gpx_content   without reloading the whole page?

Edited: 8 years ago#3437

Erm no.. i want to assign different IDs for the different new editable sections. Although the plug-in u send me was useful too (bow)...

I need the IDs to style every each section separately.... like float, background and other css parameters only for the particular section...

8 years ago#3469

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins

Well, now i understand. If you're looking for javascript solution, you can try something like this:

<script type="text/javascript">

$(document).ready(function(){

var textsections=document.getElementsByClassName('filetype-text');

for (var i=0;i<textsections.length;i++)

  textsections[i].setAttribute('id','TextSection'+i);

});

</script>

If somebody knows how to do this more compact in jQuery, i am also very interested.

Edit: thanks Josh.

Edited: 8 years ago#3473

Josh S.
2K Posts
268K Downloads
16 Themes
18 Plugins

Could be done with jQuery like this:

<script type="text/javascript">

$(function(){

  $('.filetype-text').each(function(i){

    this.id = 'TextSection'+i;

  })

})

8 years ago#3480

Thank you guys, i am supposed to put this script in the relevant template, and will this work if i want to put IDs on more than one element?

8 years ago#3521

Stano
483 Posts
16.6K Downloads
1 Themes
1 Plugins

Yes, it sets ascendingly the unique identifier for every element with that class 'filetype-text'.

(If you do use Firefox, you can check the result with HackTheWeb plugin very easily. Imho it's very useful.)

8 years ago#3522

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register