how to create pop up in articles in admin joomla2.5 - joomla2.5

I created an article in admin and want to show a pop-up with click event. I tried the following things:
Using script tag.But it did not work. And showed value to front side.
Used module fancybox and module simple pop-up. But they are showing error. I think because the core jquery file is loaded after the fancybox js file. But I did not know any way to change order of js files in head .
Could any body help me? I am new to joomla . Thanks in advance.

I found the solution. I added fancybox js in templates js and fancybox css in templates. Then $(".modalbox").fancybox();. Then adding div in articles admin.

Related

How can I upload new webpages to a django app?

I am quite new to django so I am sorry if I have overlooked something simple.
This is my current website: https://www.michealnestor.com
I am trying to remake it using react and django, and a lot of it is different, however I want to keep the functionality of being able to run my js apps from the website: https://www.michealnestor.com/projects EXAMPLE: https://www.michealnestor.com/projects/sortingalgorithms/ .
I want to be able to upload project folders, with html, css and js in them from the admin page, and then be able to open these projects from my website. I am not sure how to do this though.
I have tried manually placing such a folder in a templates folder in my app, and I have managed to use a view to load the html file, but this file can't seem to find the css and js.
Maybe I am going about this the wrong way, in any case I would appreciate some guidance!

Adding JS to spree

This may seem as a simple question, but I've been at it for days!
I'm trying to add external forms of JS to my spree app.
I've tried adding them in ass links, but they get rejected, because it's not over https
I've tried copying the code and pasting it to files, that are inside the /app/assets/stylesheets/store/ folder
I've tried adding all the code (to test it out) into the all.js file
but all methodes have failed.
Can some one explain to me how i can add Tweenmax, Jquery and other forms of JS to my app?
With kind regards,
Salman
ps:
I've checked numerous pages, as:
Javascript/Jquery not working in Spree
Adding custom cient-side form validations to Spree frontend
Including js file in spree application
http://guides.spreecommerce.org/developer/asset.html
To add Custom JS to spree you have to go to config/initializers/assets.rb and add the following line Rails.application.config.assets.precompile += %w( scripts/script.js )

django cms placeholder not in structure view

My co programmer developed a django plugin for use in a django project and on his setup, the plugin works. he can write a placeholder in the django template being used and load that with the custom plugin via the django-cms structure view. I tried doing the same thing but i noticed that the placeholder i put in the html in the same place he put it in isn't appearing in the structure view. the only placeholders appearing in the structure view and can be edited are static placeholders. placeholders entered like the ones in the django tutorial
http://docs.django-cms.org/en/release-3.3.x/introduction/templates_placeholders.html
and are placed with this code
{% placeholder "custom_name" %}
aren't appearing in the structure view. i couldn't find a similar scenario here in stackoverflow. I have a fairly similar setup to my co programmer too. i copied the same repo he's working on and i even used a dump from his postgres database in case there's something wrong with my own setup but still no luck. there are no DEBUG errors appearing in the console or the webpage so I am out of ideas. Has anyone encountered a similar situation? The django-cms we are using is version 3.1.0.
Thanks
I just found out earlier today what was wrong. I didn't notice immediately, that the page i was trying to edit was not a django-cms managed page which is why the placeholder wasn't working in it. In django-cms managed pages, the placeholder is working properly.
Thanks

Template Editor Script

Is it possible to find any open source template editors.. i wanted my site users to edit the contents of module as well as css. Once they click the edit, it should open a specific module or file name.. so the users can change the css and content and then click ok. Then after refresh the change in css and content should be reflected..
I am looking for something similar to the one in Wordpress Admin panel..where you can edit different files like header.php, style.css etc..
Any available scripts or demos or plugins or examples would be very helpful, as i can customize them to my needs
You can use html editor like fckeditor or tinymce and on server side save as php file and css file.
I on my site use JQuery rte editor and JSON RPC (Ajax -> PHP).
Finally i figured out the answer.. Some of them are
Bespin,
Ecoder
Ymacs
codemirror
emacs
they allow you to embed in your site.. and allow the users to edit the template of pages.

Can't get Google map to show up in Flatpage using Django Flatpages

I have a client with a "Directions" page in their website and they wanted to add a Google map to the page, so they went to maps and put in their location and then used the "embed" link to get the html for the iframe. They then opened up the Flatpage for "Directions" page in the admin and went to html mode in TinyMCE and then pasted in the code, but as soon as they save the code is gone and there is no map, just the div tags that surrounded the iframe are left.
I have tried Googling and I have repeated the process myself but no success, does anyone know if you are just not allowed to insert iframe html into the body of a Flatpage in django?
Unless you've added some kind of additional validation/cleaning, flatpages would not remove anything from the content. Have you tried without TinyMCE?
update: The point isn't that you'd leave TinyMCE disabled; the point is to narrow down where the problem is, so you can actually fix it. And I'm almost certain the problem here is TinyMCE, not Django.
I would suspect that tiny-mce is garbling something up. I'd try to disable tinymce and see if you have the same problem. Also, make sure you're using the 'safe' filter on the text in the templates. Otherwise Django will escape all the HTML.