Keyword

Duplicate content

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #114174 by Filip Nikitovic
Duplicate content was created by Filip Nikitovic
Hi
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 10 months ago #114175 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Duplicate content
For managing duplicate content you either need to map all you content in menus and use K2's advanced SEF, or if you need more options and control over your URLs you should use an SEO/SEF extension like sh404.

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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago - 11 years 10 months ago #114176 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
Hello,
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); ?>&nbsp;
			<?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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 10 months ago #114177 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Duplicate content
You just have to replace $item->introtext or $this->item->introtext with the appropriate snippet.

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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago - 11 years 10 months ago #114178 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
Sorry I forget to tell You that I already changed this in category_item.php.

Changed this
<!-- Item introtext -->
          <div class="catItemIntroText">
                <?php echo $this->item->introtext; ?>
          </div>
          <?php endif; ?>
to this
<!-- 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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #114179 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
Hi,
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 10 months ago #114180 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Duplicate content
Have you specified an introtext? Is introtext enabled from your category settings?

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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago - 11 years 10 months ago #114181 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
Hi thanks.
It is enabled.
Mybe something else is problem?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 10 months ago #114182 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Duplicate content
Have you specified an introtext?

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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #114183 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
What do You mean?
Number of words in introtext?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 10 months ago #114184 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Duplicate content
Please read the documentation or search the forum before posting.

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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #114185 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
That is no answer.
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 10 months ago #114186 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Duplicate content

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
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #114187 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Duplicate content
You can read every of my posts,I took time to write detail explanation for users like me.
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.


Powered by Kunena Forum