Jump to content
StudioWeb Forums

Print option in articles


Recommended Posts

In many websites, if you brow a topic or article, you will see three options, Print ? PDF ?Email.

Print will print the article, PDF will save it in PDF format and Email will send it to your friend. See example

Can anyone tell me how I can add this effect to my website?

I have designed my website manually (I mean I have not used Joomla or other CMS software)

Link to post
Share on other sites
Print is done using a javascript based window.print() command. For example: http://www.tizag.com/javascriptT/javascriptprint.php

.

 

Thanks

so I have to put this script on each article.

Will anyone tell me to do some setting on my web once, and this print option appears on each article.

I mean I should not go to each article and include this print option there.

Link to post
Share on other sites

Assuming you have designed your site manually, like you stated in your original post, no, there won't be a way to change one setting and have this appear on each article. If your site is created manually, you'll need to add the code manually.

 

You could use something like a PHP include -- that way in the future you could edit one file and have the changes applied to all the files. Even if you did that though, you'd need to edit each file to add the include.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...