Remove "Link" in Homepage Logo and Menu item if in Homepage - EPiServer - menu

I would like to remove the link to homepage in my page logo and menu item called "Home" if you are actually navigating in the Homepage, that is, the logo and Home link in the menu should not be a link if you are in the Homepage, in any other page they should be links again.
Any ideas on how to achieve this?
Many Thanks

Check using: PageReference.StartPage.ID == Container.CurrentPage.PageLink.ID
You could use it as the Visible-condition for placeholders around the A-tags... And instead of the property-control that will auto-link the name just use: <%# HttpUtility.HtmlEncode(Container.CurrentPage.PageName)%>

Related

Jumping to a specific id section on a different page

I am creating a portfolio project using handlebars and nodeJS. On my home(index) page, I have two sections down the page called 'about me' and 'contact me'. My nav bar also contains two buttons labeled 'about me' and 'contact me'. Both my 'contact me' and 'about me' have id tags with corresponding names.
I understand that when on the home page already, I can simply use
About Me
and this will automatically scroll down the page for me.
However, my issue is when I am not on the home page, but say one of my project pages. They also have the same nav bar, so if I want to click on 'contact me', simply using
About Me
it will obviously not work because that page does not contain the section with that id.
So my question is, if I am on a project page and I click on the 'contact me'/'about me' button in the nav bar, how do I get back to the home page and then also have it scroll down to those sections?
From this link, https://www.sitepoint.com/community/t/how-do-i-link-jump-to-a-specific-section-on-a-different-page/5646 I was hoping to get answers. But since I am using handlebars instead of html, this option does not work for me.Or at least I do not think it does.
I have my hbs all stored in a folder called views. The index.hbs is in /public/views. However my project pages are store in /public/views/partials <-- just for reference.
Thanks in advance!

joomla when searching in homepage show nothing

I have a search module on the home page and when I use it it stays on the homepage and shows nothing and when I use it on other parts of the website it works. When I use the search on the home page it shows this URL in the address bar:
http://127.0.0.1/esg/index.php/component/search/?searchword=test&searchphrase=all&Itemid=435
I've tried to check the PHP file of the module in /modules/mod_search but it seems normal because it works elsewhere.
Create a menu item of type "Search - Search Results" in Joomla and then clear your Joomla cache. That should fix your problem.

Browser page title in Joomla 3.3.4

i have got following problem with Joomla! 3.3.4: after entering text to the Browser Page Title window in article options, the title doesn't change. In that place is only displayed the global sitename. In older Joomla everything works properly.
To change the field title you need to edit the menu item options. When you go to the detail view of menu item in question, navigate to the Page Display tab. The first field is Browser Page Title, enter the title you want to appear and save.
That should sort it out for you...
Please try to switch to the default template and if it works there is something wrong with your template.
In order to set browser title you could use setTitle() method.
<?php
$this->setTitle( $title );
?>
You could check setTitle usage at: Joomla Docs.
If you want to set title in article template you could make an addition to:
/templates/*template_name/html/article/default.php
An example code that could set the article title to browser title would be:
<?php
$this->setTitle( $this->item->title );
?>
Hope this helps
Go to Global Configuration -> Site -> Include Site Name in Page Titles and set it to Before or After. Of course you also have to set a Site Name.

Orchard Navigation - how to make menu link not clickable

I have following menu navigation:
home
product
product 1
product 2
news
press releases
about us
Every menu item above links to a Content, except "product".I need to make it so when the user click "product" would not go anywhere.
I tried to use "Custom Link", and enters "#" or "javascript:void(0)" in the url, however that does not work since Orchard always prefix the url with "/".
Also, I tried to use "Html Menu Item" and enter "product" in the html body, but always rendered as
<li><span class="raw"><p>product</p></span><ul>...</ul></li>
I want either following:
<li>product<ul>....</ul></li>
or
<li>product<ul>....</ul></li>
Is there an easy way to do this?
In the Menu.cshtml file under the Core->Shapes->Views directory in the Orchard.Web project, you could do this:
$(document).ready(function () {
$("#Nav a").click(function(e) {
e.preventDefault();
});
});
The above disables clicking on all of your menu links, so if you want to prevent clicking on the second level menu items:
$('#Nav li ul li a').click(function(e){
e.preventDefault();
});
That Menu.cshtml file is the view for your navigation menu, so you can define it's behavior as you wish there. You can look at this answer of mine as well.
You may do as Mohammad says, but create an alternate Menu.cshtml in your Theme. It is bad practise to modify Orchards core code.

magento slideshow disappear when I edit the CMS home page title from "Home page" to something else

I am facing this strange problem with my website that if change the home page title from "Home page" to something else, it will kill my home page slideshow. I am at the same time amused and perplexed and any help would be highly appreciated.
Website URL: www.letterfloret.com
If you want to remove the title "HOme Page".
Go to Admin Panel -> CMS -> Pages -> Home Page-> Content->
Remove the Home page title over there , afterward click on the Show/Hide editor button and write the following
`<html>
</html>`
This will solve your problem

Resources