close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Plugins with dynamic data

Thread began 5/28/2014 12:13 pm by The Flying Fox | Last modified 5/28/2014 4:47 pm by Jason Byrnes | 810 views | 7 replies |

The Flying Fox

Plugins with dynamic data

Hi, Just a quick one. I've trawled the forums for an answer but cannot find anything

I have a news page on my site

http://www.crieffhighlandgathering.com/site/news/index.php

on this site is a dynamic plugin which pulls information from 2 different pages - news and archived news

Both buttons work as needed:-

?news=news
?news=archive

now the issue I am having is on each of the plugin pages there is a dynamic menu which pulls the info for the reader to select and read. this info is pulled from the database using

<a href="<?php echo $_SERVER['PHP_SELF']; ?>?Sub_title=<?php echo $row_rsFeed['Sub_title']; ?>">


I am not sure how to correct this in the URL to read from the subtilte value to pull in the news report.

i have tried adding ?news=news before the ?Sub_title and the URL reads this as correct but no info is shown on the page.

Do I need to change the recordset??


Thanks

Andy

Sign in to reply to this post

Jason ByrnesWebAssist

to add the news URL variable to the link, use:

<a href="<?php echo $_SERVER['PHP_SELF']; ?>?news=<?php echo(isset($_GET['news'])?$_GET['news']:""); ?>&Sub_title=<?php echo $row_rsFeed['Sub_title']; ?>">

Sign in to reply to this post

The Flying Fox

Thanks Jason

Works a treat

Andy

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

The Flying Fox

Hi Jason.

How can I access the link from my main index page

i have changed the <?php echo $_SERVER['PHP_SELF']; ?> to /site/news/index.php so this accesses the page, but i am not sure how to access the plugin and then the news item

So for instance I click on a news item on my home page, this then opens my news page and should be then re directed to my plugin and the appropriate news item within that plugin.

Sorry to be a pain..

Andy

Sign in to reply to this post

Jason ByrnesWebAssist

I dont follow. please provide ore details on the problem.

Sign in to reply to this post

The Flying Fox

Hi Jason,

I think I've sussed it out.

I added the following to the home page link

/site/news/index.php?news=news

and this seems to work, although I did try this earlier and it failed miserably

Andy

Sign in to reply to this post

Jason ByrnesWebAssist

Ok, glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...