CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 title & Meta tags

Print topic Send  topic

Author Message
itec

Posts: 130
Posted: 03/18/2006, 12:29 AM

I have a admin area in my site where i can add the site title and stuff how do i ket the site title and metas to be updateable from the admin area

Like if I want to change the title or keywords or discription i would be able to do it through the database php Mysql
View profile  Send private message
Martin K.
Posted: 03/18/2006, 1:04 AM

Hello.
You can make this with a Grid between the Head Tags in your Side.
Maybe you have an own table for your Metatags.
Insert a Grid in your Side between your Head Tags in the HTML Mode from CCS. (In Design Mode it's not posible) Select the Grid to your Metatag Table and set the Label Field from your Metatags to HTML.
Now, when you open your Side, the Lable Field in the Grid will show the Metatags, SideTitle aso. between your Headtags.

I hope you understand me and sorry about my english.

greets martin k.
itec

Posts: 130
Posted: 03/18/2006, 2:37 PM

No i didnt follow you on that
View profile  Send private message
Martin K.
Posted: 03/19/2006, 11:34 PM

Hello.
My english is not so good, sorry.
You write:
"Like if I want to change the title or keywords or discription i would be able to do it through the database php Mysql "

Now you want to Insert/Update your Metatags in a mysql db.
If there is a table for your metatags, you can Show this Metatags in a Grid like all other Text you will insert in your db.

Insert Metatags in you Metagtagstable like: (TextField)

<title>My New Side</title>
<META http-equiv="Content-Style-Type" content="text/css">
<META name="language" content="en">
<META name="author" content="My Name">


Now your Metatags are in the mysql db and you can Update them from your Admin with a record Side from CCS.

To show your Metatags in your Side between the head Tags, insert a Grid there, and let the Grid show your MetatagTextfield (HTML Select)

That's it....

Greets martin k.
Damian Hupfeld
Posted: 03/20/2006, 2:02 AM

You have a section called news.
You have a table called news.

news
- newsid
- title
- newsdate
- newsauthor
- newslink
- newstext
- newspicture
- metadesc
- metakeywords


* note the meta field names

Then you create your newsgrid as you normally would in the content section
of your website.
Include all of the fields in your grid except for newsid.
Right click on the two metaxxxx labels and change to hidden.

Then in the <head> section of your page add the following:
<title> My Website Name - {newstitle}</title>
<meta name="description" content="{metadesc}">
<meta name="keywords" content="{metakeywords}">

And you are done :)

You can use the same method for other pages - just include the following
fields in the table:
- title
- metadesc
- metakeywords

-OR-
You can create a separate table to contain all your meta info and each page
will link to a meta entry.

eg.
news
newsid
newstitle
newstext
metaid

meta
metaid
metadesc
metakeywords

regards
Damian



<MartinK.@forum.codecharge (Martin K.)> wrote in message
news:5441e5b1c12e48@news.codecharge.com...
> Hello.
> My english is not so good, sorry.
> You write:
> "Like if I want to change the title or keywords or discription i would be
> able
> to do it through the database php Mysql "
>
> Now you want to Insert/Update your Metatags in a mysql db.
> If there is a table for your metatags, you can Show this Metatags in a
> Grid
> like all other Text you will insert in your db.
>
> Insert Metatags in you Metagtagstable like: (TextField)
>
> <title>My New Side</title>
> <META http-equiv="Content-Style-Type" content="text/css">
> <META name="language" content="en">
> <META name="author" content="My Name">
>
>
> Now your Metatags are in the mysql db and you can Update them from your
> Admin
> with a record Side from CCS.
>
> To show your Metatags in your Side between the head Tags, insert a Grid
> there,
> and let the Grid show your MetatagTextfield (HTML Select)
>
> That's it....
>
> Greets martin k.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.