Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • slinky_d Friend
    #134001

    hi everyone,
    how can i display database values from the table jos_content with the joomla API?

    Example: i wroten an article. In this article are some photos which all stored in a folder named like the article title.
    The HTML output normaly look like this:
    <img src=”images/palletname/photo.jpg/>
    Now i like to replace palletname with the article topic stored in the table jos_content
    <img src=”images/<?php echo $ArticleTitle; ?>/photo.jpg/>

    Hope u can help me!

    Greetings

    lcristian Friend
    #273868

    You can do this with a plugin.
    There are plenty out there who can be used for that need.

    The Joomla Editor will not render any PHP code so go for a mambot/plugin.

    Go here

    vietseo Friend
    #273872

    Joomla editor support only HTML not PHP

    slinky_d Friend
    #274259

    I use the JCE editor, so inluding php code ist no problem 😉

    The picture stuff was only an example.

    I could oben the db on the “normal” way like “mysql_connect ($servername, $user, $password);” bla bla….and it works. But i like to use the joomla api instead.

    Hope u understand…and could help me

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  slinky_d 15 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum