Skip to main content
Participant
December 3, 2007
Question

how to add link to article in database.

  • December 3, 2007
  • 4 replies
  • 631 views
I'm trying create page that has the titles of articles from a blog, and which also links back to the page where the entire article is listed.

So far I have the first part done. I created a DIV and then inserted from the DATA tab of DreamWeaver - a dynamic table which shows the titles from my WordPress/MySql database.

The problem I have now, is how do I get those titles to become live links to the pages which host the articles.

Is there an easyway to do this with the functions built into DW so I don't have to get into code? In either case I'd appreciate your guidance on how to do this.
This topic has been closed for replies.

4 replies

Inspiring
December 4, 2007
Oh crap, i've posted in the worng place! Sorry.

"Mintyman" <mintyman@ntlworld.com> wrote in message
news:fj3o9t$5l2$1@forums.macromedia.com...
> Hi guys,
>
> Another question for you.....
>
> I would like to implement a system whereby someone will get a free listing
> on my site IF they include a chunk of code/widget/cookie on their page. I
> would collect the URL to this page at sign-up stage.
>
> Is there a way to make it work so that, upon accessing their entry, the
> code 'looks up' their page (on their own website) to see if the code is
> there. If so, it displays their details. If not, it returns a message like
> 'record not found'?
>
> Any help is appreciated.
>
> Darren
>
> DW8 / VBScript / MS Access
>
>
> "DezBlanco" <webforumsuser@macromedia.com> wrote in message
> news:fj1rie$2br$1@forums.macromedia.com...
>> I'm trying create page that has the titles of articles from a blog, and
>> which
>> also links back to the page where the entire article is listed.
>>
>> So far I have the first part done. I created a DIV and then inserted
>> from the
>> DATA tab of DreamWeaver - a dynamic table which shows the titles from my
>> WordPress/MySql database.
>>
>> The problem I have now, is how do I get those titles to become live links
>> to
>> the pages which host the articles.
>>
>> Is there an easyway to do this with the functions built into DW so I
>> don't
>> have to get into code? In either case I'd appreciate your guidance on
>> how to
>> do this.
>>
>
>


Inspiring
December 4, 2007
Hi guys,

Another question for you.....

I would like to implement a system whereby someone will get a free listing
on my site IF they include a chunk of code/widget/cookie on their page. I
would collect the URL to this page at sign-up stage.

Is there a way to make it work so that, upon accessing their entry, the code
'looks up' their page (on their own website) to see if the code is there. If
so, it displays their details. If not, it returns a message like 'record not
found'?

Any help is appreciated.

Darren

DW8 / VBScript / MS Access


"DezBlanco" <webforumsuser@macromedia.com> wrote in message
news:fj1rie$2br$1@forums.macromedia.com...
> I'm trying create page that has the titles of articles from a blog, and
> which
> also links back to the page where the entire article is listed.
>
> So far I have the first part done. I created a DIV and then inserted from
> the
> DATA tab of DreamWeaver - a dynamic table which shows the titles from my
> WordPress/MySql database.
>
> The problem I have now, is how do I get those titles to become live links
> to
> the pages which host the articles.
>
> Is there an easyway to do this with the functions built into DW so I don't
> have to get into code? In either case I'd appreciate your guidance on how
> to
> do this.
>


Inspiring
December 3, 2007
.oO(David Powers)

>DezBlanco wrote:
>> Is there an easyway to do this with the functions built into DW
>
>Yes...
>
>> so I don't
>> have to get into code?
>
>Surely you're not serious? Dreamweaver is a tool that speeds up working
>with code. It's not a substitute for knowledge.
>
>Your question is similar to asking "is there an easy way to get from A
>to B, but without looking at a map?"

Yes - call a taxi. ;)

But then of course you would have to pay ...

Micha
Inspiring
December 3, 2007
DezBlanco wrote:
> Is there an easyway to do this with the functions built into DW

Yes...

> so I don't
> have to get into code?

Surely you're not serious? Dreamweaver is a tool that speeds up working
with code. It's not a substitute for knowledge.

Your question is similar to asking "is there an easy way to get from A
to B, but without looking at a map?"

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Inspiring
December 4, 2007

"DezBlanco" <webforumsuser@macromedia.com> wrote in message
news:fj257v$cf0$1@forums.macromedia.com...
> I appreciate your genius.
>
> I guess the last time you took a bus or train from A to B, you broke out
> your
> compass and map instead of enjoying the ride. Did you ask the driver the
> name
> of every street the bus crossed, or did you simply ask, "are you going to
> 'B'?"
>
>
> I guess most of us with decent social skills only care that we get to B.
> Whether you believe it or not many of us on here buy the software so that
> we
> don't have to go through the process of writing raw code.

You have been mislead/misunderstood dreamweaver's function:
as David mentioned, Dreamweaver is a tool that makes working with code
easier, but you still have to have some basic knowledge about the techniques
your using.

> I also figure you didn't notice that I asked how to do it in "in either
> case"
> - with code or not.

Code: <a href="ENTER_URL_HERE">ENTER_TITLE_HERE</a>
or use the various methods for creating links provided by dreamweaver.

Create Text-Based Links in Dreamweaver
http://www.adobepress.com/articles/article.asp?p=483787&rl=1

> Would it have really be that difficult for you to just tell me how to fix
> my
> problem? Oh no... that would have been too much like like looking at a
> map.

There's this acronym for looking at maps: RTFM
There's a button to get at your map: F1

> Thank for your help.
>
Inspiring
December 4, 2007


"DezBlanco" <webforumsuser@macromedia.com> wrote in message
news:fj3q1a$7bf$1@forums.macromedia.com...
> Thank you Joris for your help. However what you've pointed about text
> links I
> do already know and understand. Perhaps it's my fault I didn't clarify
> enough
> what it is I'm having a problem.
>
> The titles need to have links away from to a page that has the complete
> article. If they were static, than I'd use ordinary html links, but my
> title
> list is dynamic, static links would not work in this case. I am working
> with
> the WordPress blog. A completely new page is being designed that will
> list the
> titles of various articles.
>
> To this point, using the Master Detail feature of DW, I am able to create
> a
> page that lists the titles, has links, but does not link back to the page
> with
> article. What is happing is that i am able to create a list of titles
> that has
> links. But when a title is clicked, a user is taken to a page which only
> list
> that title and NOT the article. Let say I have 4 titles:
> A
> B
> C
> D
> When you click on B, you land on page that ONLY has B on it, not the
> article
> page.
>
> The actual page this happens at is:
> http://www.highpitchnoise.com/blogs/wer_mast.php
>
> Appreciate guidance from anyone, I've looked the the DW MAP and not
> be
> able to figure out how to this correctly yet.
>
> Thank you
>

<snip what="code" />

The code you pasted from the Master (list) page already shows how to create
links from database content:

<a href="wer_det.php?recordID=<?php echo $row_Recordset1['ID']; ?>"><?php
echo $row_Recordset1['post_title']; ?>  </a>

in the example I gave earlier
Code: <a href="ENTER_URL_HERE">ENTER_TITLE_HERE</a>
you'd replace ENTER_TITLE_HERE with the databinding ENTER_URL_HERE with the
page containing the full article and append an URL variable to tell that
page what record it has to load, that page should then load the appropriate
content and display it.