joomla article in rokbox popup without menus, etc - joomla

i am using joomla rocketTheme Chapelco and want to display an article in the rokbox popup but without the menus, footers, etc. I just want the article contents.
I can get the article to display in the popup using link params data-rokbox as shown here
Submit
but this displays the article with the full site menus, footers, etc.

Appending &tmpl=component to the url should fix this:
<a href="index.php?option=com_content&view=article&id=200&tmpl=component"
data-rokbox
data-rokbox-elemnent="#rt-popupmodule"
class="btn btn-xs btn-info">Submit
</a>
See https://stackoverflow.com/a/15333993/1983389 for more details.

Related

About Web Page Development with Drop down menu & submit button

I want to develop a web page with following details.
I have three different drop down menu & 9 images & 1 submit button.
So according to drop down combination I can see 9 different images with help of Submit button.
Please suggest me .
I suggest you use bootstrap for your html responsive designs like drop down menu and submit buttons and javascript related functionality.
Find bootstrap tutorial in tutorialspoint.com.
All you need if just to use the appropriate class in the tag to make a drop down.
Like example:
<div class="nav-bar">
<ul class="dropdown">
<li>my list</>
</ul>
</div>
thats how easy it can be to make a drop down menu with bootstrap.
Find the tutorial or search for it in google with this search query: "tutorialspoint: bootstrap tutorial"

tumblr custom pages and ask page

I'm creating a custom tumblr theme. Both the ask (/ask) and custom pages (/whatever-you-want) seem to be considered text posts:
{block:PermalinkPage}
<div>THIS IS A PERMALINK PAGE</div>
{block:Posts}
{block:Text}
{block:Title}<h2>THIS IS THE ASK OR CUSTOM PAGE TITLE: {Title}</h2>{/block:Title}
<!-- BOTH /ASK IFRAME BOX AND CUSTOM PAGES ARE PLACED HERE -->
THIS IS THE ASK IFRAME OR CUSTOM PAGE BODY: {Body}
{/block:Text}
{/block:Posts}
{/block:PermalinkPage}
I want to have a totally different layout for the ask page and the custom pages (no headers or footers on the custom page, no title, etc) and I don't care about the (real) text posts, because I'm not going to use them. Is there a way to have a different content from the "/ask" and the custom page without using javascript? I have read the documentation, but don't see anything that would allow me to do that... Is this possible?
Yes!
Just create a new page (towards the bottom of the Customise options).
If you choose Custom Layout, you can add any html you want and it will be detached from the main template.
Here is an example: http://madox-test.tumblr.com/test
If you check the site root you can see the tumblr template: http://madox-test.tumblr.com (which can still be used for other pages too).
Ref: http://www.tumblr.com/docs/en/pages#layouts
Luke

Can't send image to Pinterest popup form

This is a bit complicated but I've got an image which uses the Pinterest parameter in its anchor entity, with the Pinterest button appearing elsewhere in the page:
<a id="im_popup" class="cloud-zoom" pi:pinit:media="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fmatchmybag.com%2Fshop%2Fbags%2Fbespoke-clutch%26media=http%3A%2F%2Fmatchmybag.com%2Fimage%2Fcache%2Fdata%2Fbags%2Fdesign-a-bag%2FThe-Clutch%2FCD1_fr_xlsq-467x467.jpg" title="" onclick="" rel="position: 'inside'" href="image/paps/linked/243241_colour_silvercrest.jpg" style="position: relative; display: block;">
The image in the 'media' parameter is not the same as the one in the img entity - just using it for testing for now but will change it to a dynamically set URL later.
When I click on the Pinterest button, the pop-up form appears and contains the correct description text, but the preview image is blank and when I click 'Pin It' in the popup form I get the 'This is not a valid image.' message.
The URL appearing in the Pinterest popup form is as follows:
http://www.pinterest.com/pin/create/button/?url=http%3A%2F%2Fmatchmybag.com%2Fbespoke-clutch&media=http%3A%2F%2Fpinterest.com%2Fpin%2Fcreate%2Fbutton%2F%3Furl%3Dhttp%3A%2F%2Fmatchmybag.com%2Fshop%2Fbags%2Fbespoke-clutch%26media%3Dhttp%3A%2F%2Fmatchmybag.com%2Fimage%2Fcache%2Fdata%2Fbags%2Fdesign-a-bag%2FThe-Clutch%2FCD1_fr_xlsq-467x467.jpg&description=Bespoke%20Clutch&layout=
Can anyone see what the problem is here? I've spent more hours than I'd care to admit to on this and would be so grateful for some pointers. Let me know if you need any more info.
Thanks a lot.
Apparently Pinterest is very strict about showing only images that actually appear on the web site. So maybe that is the issue, right now I cannot see that image on the web site provided in the url parameter (but then the question is quite old already...)

Joomla Editor form action target="_blank" truncated issue

While i was inserting a form into an article in Joomla, i had to place the forms target attribute as target="_blank" so that when the user submits the form, the form submits to a new page.
But as per Joomla's default configuration everything including form's markup went into the article html data except for the attribute target="_blank".
The editor used during the issue was Tinymce.
I'm trying to fix this issue without having to edit the source code in javascript or php.
I'm hoping for a quick fix from the Joomla's configuration somewhere.
Thanks everyone for the support.
Finally I got it figured out, without even having to change one single line of source code.
The issue was indeed by the extended valid elements options of the tinymce editor to be used.
But in Joomla, the tinymce plugin does allow to handle it from the plugin backend.
Goto Joomla plugin manager => Editor- TinyMce
Under the right Plugin configuration options, you can see at the bottom the configuration option:
Extended Valid Elements
There you can add the values
form[action|accept|accept-charset|enctype|method|target] & click save/apply.
Add the target="_blank" anywhere in your article html code & it will not be trucated anymore
:)
Cheers
I hope this helps someone who stumbled on this issue.

jQuery Mobile hash navigation doesn't work in multipage template when entering site from interior page

Overview
I've set up a site using jQuery Mobile. The problem I'm having is that when I enter the site from an interior page (like the blog pages) and click on the navigation buttons in the header, I can go back to the homepage but then none of the ajax/hash-based navigation links work. In my header navigation I've linked the left-side navigation buttons directly with hrefs, not using data-rel="back". I'm not trying to use the buttons to imitate the browser's back button, but rather for absolute navigation. I've tested this on the desktop in Chrome and Firefox and on an iPhone running iOS 5 in Mobile Safari; the behavior is the same in all browsers.
Edit: (Note specific questions below in bold italic.)
What works and what doesn't
For example, if you go to the interior page http://slawson.org/blog/ and then click the < Kim button in the header to go back to the homepage, then you can only go to absolute links (like Blog) but none of the hash-based links (the other links under the "Portfolio" and "About" headers) work... clicking on the links does not fire a page transition, instead the links just blink and do nothing.
If you enter the site from the homepage — http://slawson.org/ — or one of the subpages of the homepage — like http://slawson.org/#web — this problem does not occur.
index.html — contains most of the other pages that use hash-based navigation (these don't work), e.g.:
Web Sites
iOS Applications
Print Publications
Logos & Branding
...
blog/index.html and blog/.../*.html — regular pages loaded via JQM's ajax loader (these work).
Question
Is there a problem with JQM and ajax navigation when entering sites from interior pages, or is this something that can be fixed by restructuring things or adding some jQuery somewhere? I'd like to avoid breaking every page into a separate html file.
Versions
I'm using jQuery 1.8.2 and jQuery Mobile 1.2.0.
Edit:
I looked at the JQM multi-page template docs and at these related StackOverflow questions:
jQuery mobile page navigation behaviour
Facing an issue in jquerymobile's multi page template stucture
JQuery Mobile - link from external page (SinglePage-template) to an internal page (MultiPage-template)
Things I've tried:
data-url
I tried adding data-url to the multi-pages in index.html, like so:
<div data-role="page" id="web" data-url="index.html#web" data-title="Kim Slawson | Web Sites" class="shorter-list-items">
but that didn't help.
data-rel="external"
I tried adding data-rel="external" to links to the homepage, like this link on the navigation button on the blog page:
Kim
but that didn't help either.
data-ajax="false"
I tried adding data-ajax="false" to links to the homepage, like this link on the navigation button on the blog page:
Kim
This works (i.e., you can go to the homepage, then all of the multi-pages work) BUT the transition does not fire going to the homepage. Is there a way to add a transition to this link, perhaps by giving it a class and then using some jQuery to bind to that class to fire the transition? or is there a better way? (Of note, the back button works fine after I add data-ajax="false" to the link to the homepage. Clement Ho's answer here implies that adding it breaks the back button, but I'm not seeing that)
The problem is that the hash-based pages don't exist on the page when you're clicking the links to them. (<div data-rolw="page" id="#web">...</div> isn't there)
If you have a back-end framework set up, you could return the the hash-based pages, along with the requested page, whenever a non-ajax (the initial) request is made. Then those pages will be in the DOM no matter what page is loaded first.
The other alternative is, like you said, to break every page into its own file.

Resources