I have a menu item to open one article. When I select an article from the list, Joomla automatically populates URL. But this URL is incorrect.
Example link:
index.php?option=com_content&view=**profile**&id=39
But the correct one is:
index.php?option=com_content&view=article&id=39
Any idea why does this happen?
Thank you.
If it is problem in URL, you can copy that URL and change the Menu link as external and paste the URL over there.
Related
I have a custom formula field and I am using the below sample formula to navigate to the external URL in the community:
HYPERLINK('http://myUrl.com', 'Salesforce', '_self')
The tab is open in the same page, but I lose the URL from where I click to the new link.
I need this URL to later use Document.refferer (i dont want history.back())
If i use "_blank", i have the last url and i can use Document.refferer.
Any ideas?
I'm very new with drupal.
I have a blog, List of posts.
I need redirect a specific post to a specific external webpage, Is this possible ?
By example: I need to redirect the post (with the arrow red) to www.facebook.com/somePage. (if it's possible in other tab)
But the other posts should be redirect normally to its internal pages.
In this moment I have this configuration:
Any suggestions?
Method 1
Add a URL Redirect pointing from the 'node/#' URL to your external URL.
Render View as you have it now, and when you click the article Title it'll send you to the external page.
Method 2
Install the 'Link' module.
Add a 'Link' field to your Content Type. Configure the link field to open links in a new window, and so on.
Add that new field to your View. Set it to not appear in display, so it can be used later. Move this link above your Title Field in the View, because the order matters.
Edit the Title field settings and use the Link field value as a Token for the Title field.
I have created one button. I want to redirect to another page by clicking on it in backbone. How can i do that?
I tried following code but it does not work:
router.navigate("/file:///code/order/table.html",true);
Using JavaScript:
window.location.href = 'file:///code/order/table.html';
But I would suggest to use relative path and simple anchor tag:
Table
the backbone router usage is wrong here. from the doc router.navigate(fragment, [options]) this is the function usage, the 1st argument should be fragment, which is registered via the router.routes.
if you would like to navigate to the other file, you may consider the window.location.href
I came on this site to research a problem that I've been having regarding negating Backbone.js's history for certain elements. Thankfully, I came across this answer: here.
While it had provided a solution for me, the ultimate result was partial.
PROBLEM:
I am using Backbone.js for my navigation. I navigate to a route called "Portfolio" and then a number of images show up which can then be clicked again to view information. In order to render this information, I have it going through another route. The aforementioned resolution had me assigning the following code to negate these Portfolio links from being part of the History:
$(this).bind('click', function(e){
theSiteController.navigate('portfolio/portfolioSelection/' + i, {trigger:true, replace: true });
});
I had applied replace: false to the .navigate and it worked: whenever I hit the Back button, I would skip back to the origin page that I came from. HOWEVER, when I hit the Forward button in my browser, it points me back to the Portfolio link that I had clicked before, which looks like this:
#portfolio/portfolioSelection/4
I have it set to a different View, so I'm wondering if that has something to do with it.
QUESTION:
When I click the Forward button in my browser, how would I re-route it so that way it goes to
#portfolio
instead of
#portfolio/portfolioSelection/4
To view the site, please click here.
I apologize if this has been answered, but I can't seem to find a proper resolution.
Thank you, in advance, for your help!
I'm setting up breadcrumbs in cakephp following the cookbook (cookbook). I'm doing this in my admin section (admin routing is on) and in my layout I have the line
echo $this->Html->getCrumbs(' > ','Home');
I change home to Admin Home and it displays fine, however the url links back to the website root i.e. website.com/ instead of website.com/admin. I've been looking around and can't find anything on this. I tried leaving out the second parameter in the method call which should then make it display the first breadcrumb in the array however it only shows the current breadcrumb for each page, not the whole trail.
Any help much appreciated.
You can see that the getCrumbs is hardcoded to '/'. You'll have to override getCrumbs to linking to admin, or alternatively just add an
$this->Html->addCrumbs('Admin','/admin');
to your code
You could use this line of jQuery:
$('#breadcrumbs').children('a').first().attr('href','/admin')
If upgraded to CakePHP 2.1, there is now support for array as the second param.