a href name issue in D8 Editor Advanced link - drupal-8

I have recently installed D8 Editor Advanced link and set(content and format)
<a href hreflang data-entity-type data-entity-uuid id rel target title class="">
And when i enter a link through editor
I got options like
URL
Title
And i enter url then name but i got output like
<p>url</p> (from ck editor source)
output like
I expect title instead of url as a tag name.please help me

I'm not sure it's an issue with Editor Advanced Link.
The title here is not the visible texte but the title HTML attribute (as explain by the field description).
If I understand properly your question, you want to achieve something like <a href="url>title</a>. Using CKeditor, when you want to add a link, you should before write the visible text then applying a link wrapping it.
Here is an example GIF on a project also using Editor Advanced Link:

Related

display static html asset in jekyll + github pages

I want to add a link to a static html page (which I have created, not hosted anywhere). I added the html file to my images folder (contains the images which are being rendered in my jekyll blog). Then I make a hyperlink to the html files which I just added in the images folder, like this:
<a href=https://raw.githubusercontent.com/USERNAME/USERNAME.github.io/master/images/time.vs.score.html>View plots here</a>
Where username is my github username. This does not open a new html page, instead I just see the plain text of the html file. How can I add static html files are part of the assets? Thanks!
Thats what raw.githubusercontent.com is made returning raw file.Files are returned with Content-Type:text/plain; and then displayed as text by your browser.
You'd better link to github pages published content at https://USERNAME.github.io/images/time.vs.score.html
I found an easy solution using this tool: https://rawgit.com/
just replace:
<a href=https://raw.githubusercontent.com/USERNAME/USERNAME.github.io/master/images/time.vs.score.html>View plots here</a>
with:
<a href=https://cdn.rawgit.com/USERNAME/USERNAME.github.io/master/images/time.vs.score.html>View plots here</a>

How to render a link with a query string in Sitecore

I am trying to generate a link field on to the page, in the below format
<a class="book__btn" href="https://oc.axis.com/rez.aspx?submit=&shell=CASGCF">
Book
</a>
aspx:
<sc:Link ID="lnkBook" runat="server" Field="Target URL"></sc:Link>
<sc:FieldRenderer ID="frBook" runat="server" FieldName="Target URL"></sc:FieldRenderer>
aspx.cs:
Item offerDetails = this.DataSource;
lnkBook.Item = offerDetails;
frBook.Item = offerDetails;
The pic shows my declarations using Rocks
When the page is previewed, the button does not render at all. However, if I remove the text in the Query String field, it renders fine.
The Sitecore Rocks interface is a little misleading for links because the applicable fields do not change based on the link type. Query String is only supported for internal links. If you want to add a query string to your external link, just add it directly to the Url.

CustomItemGenerator and the Page Editor

Sitecore 6.6 Update 4
We're using CustomItemGenerator 1.0 and I was using this to help build a primary navigation menu for a site. This worked as expected and everything was rendered properly.
My problem is when I attempt to edit the menu via Page Editor; I don't even see the menu.
I use a repeater and repeat over a list of links to include in the nav. Due to the way the HTML was created, each LI element needs to have its own, specific ID ("Nav Id" Field in Sitecore) that ties into the CSS. Code inside of my repeater's ItemDataBound event:
// Cast the item using CustomItemGenerator-generated class
GenericContentPageItem navItem = (GenericContentPageItem)e.Item.DataItem;
liMenuItem.ID = navItem.NavId.Rendered; // I tried "navItem.NavId" by itself as well
So while this renders properly in the browser, it doesn't when I'm in Page Editor:
<li id="<input id='fld_B72EB6696DCF41A49671972D5EA5DEB8_2163B90C08AB4A18970A7F3ECE79DCFC_en_1_f71bd37d18d146c19e222e89fcffe278_3' class='scFieldValue' name='fld_B72EB6696DCF41A49671972D5EA5DEB8_2163B90C08AB4A18970A7F3ECE79DCFC_en_1_f71bd37d18d146c19e222e89fcffe278_3' type='hidden' value=" Home?="">
... instead of it rendering like this:
<li id="Home">...</li>
Now, that having been said, I can change my code to not use the CustomItemGenerator and it works fine in the browser and Page Editor as follows:
GenericContentPageItem navItem = (GenericContentPageItem)e.Item.DataItem;
Item nav = Sitecore.Context.Database.GetItem(navItem.ID);
liMenuItem.ID = nav.Fields["Nav Id"].ToString();
I would like to avoid having to hardcode field names in my code, which is why I am using CustomItemGenerator. Is there something that I'm doing wrong with my code that it doesn't want to work in Page Editor?
Thanks!
If you need the actual value out of the field regardless of if you are in the page editor or not, you want to use the Raw property:
liMenuItem.ID = navItem.NavId.Raw;

Redirecting an external link in the menu so it opens in a position of the template and not in a new tab

I just wrotge a php file and I puted it in the file manager in the site so you can get to it with the url like this: http://www.eatwizard.com/project081113/ ... select.php
Now I created a link in the menu a the main page, and I wanted to deliver the page into the mainframe (to a position of the template), instead the link is being opened in a new tab, any ideas of how I can change it? thanks!!!!
You should use the "target" attribute of the tag.
Syntax :
<a target="_blank|_self|_parent|_top|framename">
In your case, specify the destination framename.
For instance :
<a target="my_rightupper_frame" href="http://....." >Here's a link</a>
See details : http://www.w3schools.com/tags/att_a_target.asp

How to display module Titles Joomla 2.5

Does anyone know how to turn the title (name) of a module in Joomla 2.5 ? On my site http://www.amidsfo.ru/ now all modules no title (name).
If the show title is enabled and still does not show the title, check your template,
you have to call your module something like this:
<jdoc:include type="modules" name="left" style="xhtml" />
The magic section is style="xhtml", so make sure you have it.
From the Joomla Administration page, choose the menu item Extensions/Module Manager
Locate and edit the module for which you want the title to appear
On the page that appears, in the Details pane, directly below the Title is Show Title - make sure that Show is selected