Extension

Developer
Supported

Crosslinking

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy

     

You must be logged in to post.

Error when using embed:title

Bug Report

paultz
paultz

Hi, i have my title in embed

<title>{embed:my_title}Mobile Solutions</title>

and my embed template:
{embed=“includes/masthead_global” title=”{exp:channel:entries channel=“mobile” status=“open|featured” limit=“1” }{title}{/exp:channel:entries} — ” keywords=“some key words here”}

When rendering on EE, and instead of getting the title:
<title>Educational - Mobile Solutions</title>

I am Getting the Error
<title>>a href= Mobile Solutions</title>

I have tried using {no_crosslinking}{/no_crosslinking}  like <title>{no_crosslinking}{embed:my_title}{/no_crosslinking}Mobile Solutions</title> without luck

Any help will appreciate, i am using ee 2.9.2

paultz
# 1
paultz

I am Getting the Error
<title>>a href= Mobile Solutions</title>

Yuri Salimovskiy
# 2
Developer
Yuri Salimovskiy

Try using {no_crosslinking} in parent template

paultz
# 3
paultz

I have tried to use {no_crosslinking} the whole template code here {/no_crosslinking}  on both the include/masthead_global as well as the main template itself but it renders the ee code and leave no crossing tag like seen like {no_crosslinking} {/no_crosslinking} no effect, remember this embed template i use it in <header></header> of the page

Yuri Salimovskiy
# 4
Developer
Yuri Salimovskiy

Try this:

{embed="my/template" my_title="{no_crosslinking}{title}{/no_crosslinking}"
paultz
# 5
paultz

This is my code:

{embed="includes/masthead_global" title="{exp:channel:entries channel="mobile" status="open|featured" limit="1" }{no_crosslinking}{title}{/no_crosslinking}{/exp:channel:entries} &mdash;&nbsp;" keywords="mobile, educational, food, vegetable,"

When rendering to EE i am getting:
<title>{no_crosslinking}Educational Apps{/no_crosslinking} — Mobile Solutions</title>

Now it renders the name correctly Educational Apps but i still get the tags no_crosslinking in position instead of
just <title> Educational Apps — Mobile Solutions</title>

 

Yuri Salimovskiy
# 6
Developer
Yuri Salimovskiy

So this probably does not work with embeds. Unfortunately I can’t provide a solution for you.
Feel free to request a refund if you find you can’t use this add-on at your site.

paultz
# 7
paultz

I have remove the embed and put the header direct to the title no_crossling tags like:
<title>{exp:channel:entries channel=“mobile” status=“open|featured” limit=“1” }{no_crosslinking}{title}{/no_crosslinking}{/exp:channel:entries} —  Mobile Solutions</title>

Now i still get:

<title>{no_crosslinking}Educational Apps{/no_crosslinking} — Mobile Solutions</title

With no_crossling tag i get:

<title><a href="http://localhost/mobilesolutions.co.tz/index.php/mobile/educational-apps" class="crosslinking">Educational Apps</a— Mobile Solutions</title