Keyword

Get article id

More
14 years 2 weeks ago #81759 by AdrianK
Replied by AdrianK on topic Get article id
You need the K2 article-id delivered via GET to your script. You can temporary write the data ($this->items->extra_fields) in a database table and read it in. Or you build a query and more to take it out of the K2 tables. This is not so easy. Or your send the fields data via GET, but then think about security and filter the data.

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

  • Tiago Manuel da Costa Silva
  • Tiago Manuel da Costa Silva's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 weeks ago #81760 by Tiago Manuel da Costa Silva
Replied by Tiago Manuel da Costa Silva on topic Get article id
Temporary write the data ($this->items->extra_fields) in a database table and read it in. How so?

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

More
14 years 2 weeks ago #81761 by william white
Replied by william white on topic Get article id
Can you use Yiota's example and try something like this
$yourvar = JRequest::getInt('id');
right where you are in the code and use it on the fly?

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

  • Tiago Manuel da Costa Silva
  • Tiago Manuel da Costa Silva's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 weeks ago #81762 by Tiago Manuel da Costa Silva
Replied by Tiago Manuel da Costa Silva on topic Get article id
I changed the print button code on item.php on the directory \joomla\components\com_k2\templates\default.
Does this answer your question?

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

  • Tiago Manuel da Costa Silva
  • Tiago Manuel da Costa Silva's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 weeks ago #81763 by Tiago Manuel da Costa Silva
Replied by Tiago Manuel da Costa Silva on topic Get article id
How can i be able to load and use the k2 classes inside my pdf file (external file)? If i could do this i woudn´t need to use GET or POST and make my website vulnerable

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


Powered by Kunena Forum