- Posts: 73
COMMUNITY FORUM
Duplicate content
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
I just started with my blog and i read about problems with duplicate content.
Please take a look at this pages
www.vienna-airport-cab.at/index.php/de/blog/content/2-taxifahrt
and
www.vienna-airport-cab.at/index.php/de/blog
This last page is set in Menu Manager as Menu Item - type:category and I selected multiple categories:
taxifahrt and restaurants
and I will add every new category I create.
Should I just block www.vienna-airport-cab.at/index.php/de/blog with robots.txt?
And is it possible to set Introtext word limit for www.vienna-airport-cab.at/index.php/de/blog ??
becouse I selected multiple categories as I told this page is set in Menu Manager as Menu Item - type:category - multiple categories and there is no option for Introtext word limit like in specific category's options.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
As for the introtext you either have to manually specify an intro text or use a snippet like this one:
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
Can You please be more specific:
As for the introtext you either have to manually specify an intro text
Where can I manually specify an intro text?
If You mean at in specific category's options then I cant do that for this problem as I explained.
use a snippet like this one
<?php echo K2HelperUtilities::wordLimit($item->introtext, 100); ?>
I belive You mean add it to item.php but where?
When I search for
<?php echo K2HelperUtilities:
I can find that in this:
<!-- Item Author -->
<span class="itemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
<?php if(empty($this->item->created_by_alias)): ?>
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
<?php else: ?>
<?php echo $this->item->author->name; ?>
<?php endif; ?>
</span>
<?php endif; ?>
<!-- Item attachments -->
<div class="itemAttachmentsBlock">
<span><?php echo JText::_('K2_DOWNLOAD_ATTACHMENTS'); ?></span>
<ul class="itemAttachments">
<?php foreach ($this->item->attachments as $attachment): ?>
<li>
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo $attachment->title; ?></a>
<?php if($this->item->params->get('itemAttachmentsCounter')): ?>
<span>(<?php echo $attachment->hits; ?> <?php echo ($attachment->hits==1) ? JText::_('K2_DOWNLOAD') : JText::_('K2_DOWNLOADS'); ?>)</span>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<!-- Author Block -->
<div class="itemAuthorBlock">
<?php if($this->item->params->get('itemAuthorImage') && !empty($this->item->author->avatar)): ?>
<img class="itemAuthorAvatar" src="<?php echo $this->item->author->avatar; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->author->name); ?>" />
<?php endif; ?>
<div class="itemAuthorDetails">
<h3 class="itemAuthorName">
<a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
</h3>
<?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)): ?>
<p><?php echo $this->item->author->profile->description; ?></p>
<?php endif; ?>
<?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)): ?>
<span class="itemAuthorUrl"><?php echo JText::_('K2_WEBSITE'); ?> <a rel="me" href="<?php echo $this->item->author->profile->url; ?>" target="_blank"><?php echo str_replace('http://','',$this->item->author->profile->url); ?></a></span>
<?php endif; ?>
<?php if($this->item->params->get('itemAuthorEmail')): ?>
<span class="itemAuthorEmail"><?php echo JText::_('K2_EMAIL'); ?> <?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
<?php endif; ?>
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Look how the introtext is used in category_item.php and replace it with the snippet.
PS. be careful where to use $this-> item or $item
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
Changed this
<!-- Item introtext -->
<div class="catItemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<!-- Item introtext -->
<div class="catItemIntroText">
<?php echo K2HelperUtilities::wordLimit($item->introtext, 40); ?>
</div>
<?php endif; ?>
And after that change all intro text is gone.
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
Can you please help me with this?
I tried what You told me but it didnt help.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
It is enabled.
Mybe something else is problem?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
Number of words in introtext?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can either use two separate editors one for intro and one for full text or manually insert a read more break using your WYSIWYG editor.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
How can that help?
You allready give me bad advice and I had to do it my self and was detail about it so Your future readers can better understand.
Just look at his post:
getk2.org/community/New-to-K2-Ask-here-first/178187-Change-comment-box-size
I wrote it so everyone can understand it,llok like I care more about k2 users then You.
I know You dont have time to go through every post but this is no way to treat Your users.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
That is no answer.
How can that help?
If had bothered to read the documentation you would noticed how that would have helped.
Sometimes I dont have time to read all the posts and give the help I want because users don't take the time to read a tutorial or search the forum. Not searching the forum harms the other users not me.
Just look at his post:
getk2.org/community/New-to-K2-Ask-here-f...nge-comment-box-size
Posting inaccurate things and making unproductive criticism will only get you banned. You have been warned.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
-
Topic Author
- Offline
- Senior Member
- Posts: 73
We are not all into coding,that why I use Joomla.
You can read what You give as advice in my post and what I did if You think Im laying.
Have a nice day.
Please Log in or Create an account to join the conversation.