0
Welcome Guest! Login
0 items Join Now

pasting code into articles

  • pasting code into articles

    Posted 16 years 1 month ago
    • So we are trying to paste shopping cart code into different articles. In essence to make catalogs for different products that can then be managed through article manager. Not to sure how to do this but i do know that you cannot just paste the code into the article and one cannote paste it into the HTML window. With my limited knowledge of these things i would appreciate any help that anyone could render.
      <form method="post" style="margin-bottom: 0" action="https://www.linkpointcart.net/cgi-bin/cart.cgi">
      <table border="0" cellpadding="0" cellspacing="0">
      &nbsp; <tr>
      &nbsp; &nbsp; <td align=right>Quantity</td><td width=5>:</td>
      &nbsp; &nbsp; <td align=left><input type="text" name="VARJKLL007Quantity" value="1" size="4"></td>
      &nbsp; </tr>
      &nbsp; <tr>
      &nbsp; &nbsp; <td align=right>Size</td><td width=5>:</td>
      &nbsp; &nbsp; <td align=left>
      &nbsp; &nbsp; &nbsp; <select name=APPENDITEMJKLL007000>
           <option value="|<BR><LI>Size: Small|0.00|||||||||||||||||Small">Small
           <option value="|<BR><LI>Size: Medium|0.00|||||||||||||||||Medium">Medium
           <option value="|<BR><LI>Size: Large|0.00|||||||||||||||||Large">Large
           <option value="|<BR><LI>Size: X-Large|0.00|||||||||||||||||X-Large">X-Large
      &nbsp; &nbsp; &nbsp; </select>
      &nbsp; &nbsp; </td>
      &nbsp; </tr>
      &nbsp; <tr>
      &nbsp; &nbsp; <td align=right>Color</td><td width=5>:</td>
      &nbsp; &nbsp; <td align=left>
      &nbsp; &nbsp; &nbsp; <select name=APPENDITEMJKLL007001>
           <option value="|<BR><LI>Color: Black/Turquoise|0.00||||||||||||||||||Black/Turquoise">Black/Turquoise
           <option value="|<BR><LI>Color: Red/Purple|0.00||||||||||||||||||Red/Purple">Red/Purple
           <option value="|<BR><LI>Color: Gold/Gray|0.00||||||||||||||||||Gold/Gray">Gold/Gray
      &nbsp; &nbsp; &nbsp; </select>
      &nbsp; &nbsp; </td>
      &nbsp; </tr>
      &nbsp; <tr>
      &nbsp; &nbsp; <td colspan="3" align="center">
      &nbsp; &nbsp; &nbsp; <input type="hidden" name="AddItemJKLL007" value="1118383|Ladies Lux Kimono|158.87|VARJKLL007Quantity|JKLL007|3%|prompt|3" >
      &nbsp; &nbsp; &nbsp; <input type="submit" value="Add To Cart" alt="Add to cart"/>
      &nbsp; &nbsp; </td>
      &nbsp; </tr>
      </table>
      </form>
    • “Sometimes the light's all shining on me, Other times I can barely see,lately it occurs to me, What a long strange trip it's been” - Grateful Dead [truckin’]
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: pasting code into articles

    Posted 16 years 1 month ago
    • A) In Global Configuration turn off your WYSIWYG editor and paste your code.

      B) Create a new user and set their preferences to 'no editor' when you need to paste code, use that account.

      C) Assuming you're using TinyMCE, go to Extensions > Plug-ins > TinyMCE 2.0 and turn off Code Cleanup options. This will *usually* allow you to paste code in TinyMCE HTML view, switch back, and save without stripping the code.

      D) Try JCE - Joomla Content Editor - the basic version is free, many of the members here that use WYSIWYG use JCE. It's configurable, user friendly, and has a few additional features that are quite useful.
    • Thanks,
      jim
  • Re: pasting code into articles

    Posted 16 years 1 month ago
    • THAT WORKED GREAT!! I had overlooked that and was trying to paste into the HTML window. Oh well thats what i get for being stupid. THanks for you help on getting me back on track.
    • “Sometimes the light's all shining on me, Other times I can barely see,lately it occurs to me, What a long strange trip it's been” - Grateful Dead [truckin’]
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: pasting code into articles

    Posted 16 years 1 month ago
    • ...and if you are ever bored, give FCK editor a try, too. Though i am still looking at JCE, given how many people love that editor, I am a fan of FCK editor, having used it a lot in my asp.net world. ;)
  • Re: pasting code into articles

    Posted 16 years 1 month ago
    • I have never used FCK editor but have been using JCE editor which is good and i like it a lot better than the tinymc editor. THough I wish the JCE had the events and popup tabs in it.
    • “Sometimes the light's all shining on me, Other times I can barely see,lately it occurs to me, What a long strange trip it's been” - Grateful Dead [truckin’]
  • Re: pasting code into articles

    Posted 16 years 3 days ago
    • None of these solutions are working for me. I'm trying to add a PayPal button to an article. Part of it is "action=" www.paypal.com/cgi-bin/webscr " " but whatever I do, this bit of the form gets stripped out.

      (J! 1.5 Versatility 4)

      Any suggestions, please.
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: pasting code into articles

    Posted 16 years 3 days ago
    • steve hards wrote:
      (J! 1.5 Versatility 4)


      J1.5.8?
  • Re: pasting code into articles

    Posted 16 years 3 days ago
    • Yes, new install. Since I posted I've been looking around and see lots of people have problems with PayPay buttons, so I've been looking at the Raw Content component that looks like it should do the job - but I'm having problems installing it. The directory gets created, but no files are uploaded to it. I tried FTPing them, but didn't work. A server-directory ownership problem, I think. So I'm still stuck.
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: pasting code into articles

    Posted 16 years 3 days ago
  • Re: pasting code into articles

    Posted 16 years 2 days ago
    • Oh thank you, Terp!

      That worked, even using the html window with JCE Editor. I'd never have found that by myself.

      Steve

Time to create page: 0.059 seconds