Keyword

pdf extension for k2 items

  • Pakito Oottoo Pamparampam Crew
  • Pakito Oottoo Pamparampam Crew's Avatar
  • Offline
  • New Member
More
13 years 4 months ago #81191 by Pakito Oottoo Pamparampam Crew
Replied by Pakito Oottoo Pamparampam Crew on topic pdf extension for k2 items
PDF with joomla's sef is not working. Any idea?

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

  • Nilesh Toshniwal
  • Nilesh Toshniwal's Avatar Topic Author
  • Offline
  • New Member
More
13 years 4 months ago #81192 by Nilesh Toshniwal
Replied by Nilesh Toshniwal on topic pdf extension for k2 items
thats router.php in k2 folder, actually they dont have routed format=pdf in their router.php.

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

  • Pakito Oottoo Pamparampam Crew
  • Pakito Oottoo Pamparampam Crew's Avatar
  • Offline
  • New Member
More
13 years 4 months ago #81193 by Pakito Oottoo Pamparampam Crew
Replied by Pakito Oottoo Pamparampam Crew on topic pdf extension for k2 items
do you know what to add in router.php so it works?

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

  • Pakito Oottoo Pamparampam Crew
  • Pakito Oottoo Pamparampam Crew's Avatar
  • Offline
  • New Member
More
13 years 3 months ago #81194 by Pakito Oottoo Pamparampam Crew
Replied by Pakito Oottoo Pamparampam Crew on topic pdf extension for k2 items
Anyone knows if I can disable SEO in Joomla just for some links?

Kind of... !JRoute::_(''); or something like that... ¿?

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

  • Pakito Oottoo Pamparampam Crew
  • Pakito Oottoo Pamparampam Crew's Avatar
  • Offline
  • New Member
More
13 years 3 months ago #81195 by Pakito Oottoo Pamparampam Crew
Replied by Pakito Oottoo Pamparampam Crew on topic pdf extension for k2 items
Ok, I got it work with SEO with a little trick...

 

I created a file called pdf.php witch contains the following code:

 

<?phpif ($_GET) {    $dircode = $_GET;    $dir = base64_decode($dircode);    Header("Location: ".$dir);    }else{    echo "Error creando el PDF.";}?>


Then I call this file this way:

 

<div class="toolbarItem">     <?php $u = $mosConfig_live_site."index.php?option=com_k2&view=item&id=".$this->item->id."&format=pdf&tmpl=component";         $ucode = base64_encode($u);    ?>    <a class="link" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;" href="pdf.php?pdf=<?php echo $ucode; ?>">        <img src="images/pdf.png" height="16px"/> PDF    </a></div>


Hope this helps someone ;-)

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

More
13 years 3 months ago #81196 by Marcos Peebles
Replied by Marcos Peebles on topic pdf extension for k2 items
Hi all, Philip Locke as come out with this:http://www.content2pdf.com/

 

Even better than just a single pdf page, worth looking!Cheers 

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

  • Pakito Oottoo Pamparampam Crew
  • Pakito Oottoo Pamparampam Crew's Avatar
  • Offline
  • New Member
More
13 years 3 months ago #81197 by Pakito Oottoo Pamparampam Crew
Replied by Pakito Oottoo Pamparampam Crew on topic pdf extension for k2 items
NICE :)

Marcos Peebles said:
Hi all, Philip Locke as come out with this:http://www.content2pdf.com/

 

Even better than just a single pdf page, worth looking!Cheers 

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

More
11 years 6 months ago #81198 by b600 e6tr
Replied by b600 e6tr on topic Re: pdf extension for k2 items
Hi I am not clear with the second point mentioned. What is the piece of code that i need to add to item.php file. Could you please help me setup this pdf on k2 content.

Thanks
b600

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

More
11 years 6 months ago #81199 by b600 e6tr
Replied by b600 e6tr on topic Re: pdf extension for k2 items
Hi Ruth,
Can you please help with this. I am not able to generate the k2-item as pdf. This would be great help to me if you suggest me the steps.

Ruth Cheesley wrote: This looks great, I've got it working but it's not showing tables properly so may have to have a twiddle, also not showing the image.

Good start, I can't believe it's not a core part of K2 to be honest!

Ruth

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

More
11 years 4 months ago #81200 by rosa qwe
Replied by rosa qwe on topic Re: pdf extension for k2 items
i neede this .php file !!
but not exist !! :( :( :( :( :( :( :(
please help me .

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


Powered by Kunena Forum