Page 2 of 3

Re: 0.13 Final Released!

Posted: Fri May 19, 2006 4:44 pm
by lemkepf
It could just be my "noobness" with the whole mod_rewrite jazz and .13 release but i have an issue....

When i put the {metadata} tag in the template it will display meta data without any meta tags. Ok, that's fine i just put the meta data tags around the output.

But now that i'm using the pretty hierarchy URL's i need the "base" tags. So i say "{metadata showbase="true"}" We'll... then it displays the meta stuff in the meta tags, along with the base stuff in the meta tag.

So here is my template:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>{title}</title>
{stylesheet}
<meta name="description" content="{metadata showbase="true"}">
</head>
</__body>
And here is the output:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Visitor's Guide - First Lutheran Church and School, Elkhorn, WI (WELS)</title>
<link rel="stylesheet" type="text/css" href="http://www.firstatthecross.com/stylesheet.php?templateid=5" />
<meta name="description" content="First Lutheran Church and School, Elkhorn, WI (WELS) - The continuing purpose of this congregation, as a gathering of Christians, is to serve all people in God’s world with the gospel of Jesus Christ on the basis of the Holy Scriptures. 415 South Devendorf Street Elkhorn, Wisconsin 53121, Church  (262)723-4191 / School (262)723-1091
<base href="http://www.firstatthecross.com/" />">
</head>
So yea... is this a bug or am i doing something wrong? Here is the config file:

Code: Select all

#------------
#URL Settings
#------------

#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = true;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
Help?

Re: 0.13 Final Released!

Posted: Fri May 19, 2006 4:59 pm
by Ted
Put the whole meta tag into the metadata box in the admin, not just the content of it.  Then just {metadata} (the showbase is true by default in almost all cases) in your template and you should be set.

Re: 0.13 Final Released!

Posted: Fri May 19, 2006 5:00 pm
by Greg
Elijah your patch seems to cause another problem
Maximum execution time of 30 seconds exceeded in /hsphere/local/home/gregbloo/gregbloor.com/lib/classes/class.admintheme.inc.php on line 848
The message I get when trying to open a template

Also kills editing global content blocks

Re: 0.13 Final Released!

Posted: Fri May 19, 2006 5:32 pm
by lemkepf
Ted wrote: Put the whole meta tag into the metadata box in the admin, not just the content of it.  Then just {metadata} (the showbase is true by default in almost all cases) in your template and you should be set.
Yea... that totally makes sense now...  ;D

Re: 0.13 Final Released!

Posted: Fri May 19, 2006 5:43 pm
by miss_d_bus
Greg - it doesnt seem to do that here and everything appears to be working properly (ignoring the ongoing CSS not loading issue I get) so its one of those pesky intermitant bugs  :(

Re: 0.13 Final Released!

Posted: Fri May 19, 2006 7:30 pm
by Greg
Thanks Ted ... the patch of the patch restored all functionality.

Re: 0.13 Final Released!

Posted: Sat May 20, 2006 3:53 am
by Ryno
I understand that the patch has been committed to svn and that the patch of the patch is available for download in this topic, but is a new version with the patch be released on the downloads page for everyone who may not read this topic? Apologies in advance if this has already been done.

Re: 0.13 Final Released!

Posted: Sat May 20, 2006 5:58 am
by Russ
Nice one Ted :) Getting better by the minute.

A quick question however. What happened to the optimistic locking. On my current version (still the beta 0.13b4) only the second of any two changes are saved. The user is not warned that they are using stale data. I vaguely remember seeing this in a patch somewhere, but wonder where it has gone?

I guess a simple timestamp field and a warning about data being previously changed, followed by a copy of the users changes to the clipboard, or at least a warning for them to do so, and a refresh of the new data ready for them to paste their changes?

Just a thought, I may need to use CMS in the near future as a sort of departmental Wiki and this would be cool. I think this would need to be implimented for content and news?

Russ

Re: 0.13 Final Released!

Posted: Sat May 20, 2006 12:49 pm
by Ted
@Ryno: I'll release a 0.13.1 in a few days after a few more bugs are squashed.

@Russ: If there was a patch for this submitted, it was never committed into the code.  Does sound like a neat idea, though.

Re: 0.13 Final Released!

Posted: Sun May 21, 2006 7:51 am
by Russ

Re: 0.13 Final Released!

Posted: Sun May 21, 2006 9:55 am
by Gregor
Isn't did something that can be managed by the dbms? (sorry, just know the theory and not how to solve in a practical way  ;D )

Re: 0.13 Final Released!

Posted: Sun May 21, 2006 3:16 pm
by Ted
Wow, I didn't know that patch was there.  Whoops.  :)  I guess we can get it in the codebase, though I'm sure it'll be a little bit of arm twisting because it's probably out of date.

Re: 0.13 Final Released!

Posted: Fri May 26, 2006 8:20 am
by URAN
WOW! Finally menu bug of the "EllNav Horiz/Vert L 1col" template is solved :)

Re: 0.13 Final Released!

Posted: Tue Jun 06, 2006 3:07 pm
by cwaz13
Quick question... is the 0.13 download link on the main page the most up-to-date version, with these patches included? 

Is that all I need or doI have to upgrade and then download/apply patches discussed on the forums?  Just so I know the steps I need to take to have the most stable version possible (upgrading from 0.12.2).

Thanks! :)

Re: 0.13 Final Released!

Posted: Wed Jun 07, 2006 5:45 am
by Dr.CSS
What The  ??  :o
i just upgraded to latest stable and now after about 2 hours i'm missing pages and section haeders...
everything was fine then POOF!! gone... they still show up in the site map... well they did...
and my first page "Home" is now listed on Content » Pages as # 2...