No, there is no frontend module yet. Backend works fine, except there are no translations and icons and so on.
Type: Posts; User: scare
No, there is no frontend module yet. Backend works fine, except there are no translations and icons and so on.
Yes, by writing your own template.
$this->id ?
Is there a call stack displayed?
I believe the easiest solution would be to create mysql view using union to include properties from both tables and then use listing module to show the results.
I would include code to generate the link to catalog reader template. I don't see any other solution.
I can see in the source code of catalog reference module that there should be field called 'Visible Fields'. Can you see something like this (in BE)? What version of Catalog do you use?
I assume this code creates the links, right?
<div id="link3">
<?php echo $entry['data']['festival_name']['value']; ?>
</div>
I would recommend putting <?php var_dump($entry['data']); ?> there...
I should have read to the end of the thread before posting, I guess :)
Raw is value as stored in database, this varies from field to field. For checkbox it is empty value if it is not checked or 1 if it is checked. Value is derived from raw in a context specific way,...
You need to include veranstalter_festival_check to be displayed in your frontend catalog module. I can see that currently you only display event_flyer, event_title, event_date, event_festival,...
var_dump (or print_r) is your best friend when developing catalog templates.
You just enter code like this to your template:
<?php var_dump($this); ?>
This will output content of $this...
OK, I'm writing this from my head so don't complain if it doesn't work :) Test every step below in some phpmyadmin or similar program to see if it gives correct results.
We need to find the first...
I would say that checkbox value is converted to yes / no string, which always evaluates to true. Try something like (notice the raw key in the first line):
<?php if...
It should display all events from the current month, it ignores the day completely, so only month and year matter. Of course you need to test it :) You may try to substitute NOW() with tomorrow's...
Try something like
MONTH(FROM_UNIXTIME(event_date)) = MONTH(NOW()) AND YEAR(FROM_UNIXTIME(event_date)) = YEAR(NOW())
Although I think that calculating timestamp of the first day in month and...
You may try to override catalog settings in dcaconfig.php - not sure if it works, but give it a try, we may find some other solution if not.
Well, if you run install.php, it should take care of db update. A list of changes that are to be done to your db should be displayed. You just click update :) Maybe you could post a screenshot?
Your localconfig.php is messed up. Make sure to clean all spaces before <?php and after last ?> - there must be no spaces at the end of the file.
$writer = new WriteTheXML();
$writer->writeXMLFile($parentid);
I would say that for maximum security files should be readable and folders readable and executable by file owner only. Except for localconfig.php and tmp folder, which must be writable too. This is...
I don't know of such a guide and I don't really see a reason for such thing, as installation without safe mode should be really straighforward. You basically need to turn off safe mode in PHP, chown...
Why don't you just switch off safe mode if you have complete control over your server? No need to use safe mode hack then :)
OK, so I would first decide if you really need parseCatalog. I'm sure you don't. You may use sql joins to load additional information about referenced tables.
My run function would look something...
I would just copy flash.php and take a look at how it accesses database.
Maybe you don't have gd2 installed?
I would say that running install.php will do the trick. Another option (and better IMHO) is to ask your hosting company to set your account now as if your domain was already working (which may be...
Well the problem is that your data model does not fit TL very well. I would start by looking at Tasks module - it provides custom rendering for individual tasks, maybe you can change it to fit your...
You need write permissions for the folder where you are uploading your files. If you are using safe mode, you need to use safe mode hack to make it work correctly.
This looks like frontend module. Do you need backend module too?
you may try using
global $objPage;
echo $objPage->id;
Not planned for v2 (AFAIK). And I believe the effort required to add some decent e-commerce support would be similar to effort required to create catalog + catalog_ext (= a lot - we may argue about...
You may use php time() function for tstamp. Sorting is a little bit more complicated, but if you only want to add items to the end of the table, you may select max(sorting) from xyz and then use that...
But you may always use google maps javascript api to add pois - read xml using XHttpRequest and process it manually.
My idea is to replace catalog navigation by more powerfull extension custommenu where you can mix page structure with your own items and items generated from database tables. Should be ready for...
What version do you use? You need version 2.0, downloadable from http://code.google.com/p/typolight-catalog/ - still alpha
You need to add followig lines to system/drivers/DC_DynamicTable.php:
if (preg_match('/^catalog(\d+)$/', $this->Input->get('do'), $matches))
{
...
Yes, a hook is much better idea.
I'm not sure about permissions, but checking for permissions can be part of hook processing, if it doesn't work out of box (I don't use permissions at all, so I...
There was a little known feature in DC_Catalog.php:
if (preg_match('/^catalog(\d+)$/', $this->Input->get('do'), $matches))
{
...
One option would be to display all items in all 3 levels and use css to hide second level items unless their parent is active. This should be possible, I guess.
Well, there may be problem if you include your code on some page twice - alterScanfiles function would be defined twice which generates an error. You mentioned the code resides in some template, so...
Using foreach is easiest IMHO.
$files = scan(...);
foreach ($files as $file)
{
$fileWithPath = $membersfolderpath . $file;
if ($fileWithPath != $logo && $fileWithPath != $picture &&...
well adding
p.more a { color: red; } to your style will do IMHO.
Ah, too late :)
I don't know what precisely do you aim for, but it looks like building custom module is the way to go :) Here is a tutorial http://dev.typolight.org/wiki/TutorialsExtension - you may need to create...
The code to resize images is in system/libraries/Controller.php - function name is getImage
However if you want to display your content through TL, you may simply use image insert tag and TL will...
Well, no need to add this to core, I believe. Custom extension will do, after all if some 5% of sites require this feature, there is no real reason to ship it with all installations.
We'll need...
Well I think that "in progress", "pending review", and "published" is pretty useless unless we have two versions of the same content - one version is displayed in frontend and the second version is...
Did he? I looked at the last version and it is not implemented there. Maybe in trunk?
Well, using catalog would require too much work with little added value. Adding new inserttags would be better IMHO. Something like {{link::firstchild}}, {{link::lastchild}}, {{link::nextsibling}},...
Could you try removing .htaccess file from root directory (you need to disable friendly urls first)?
So could you create a page on your client's website with quicktime player?
Hi Dave, could you set up a test site so that we could check what might be the problem?
Hi Dave,
try FireBug extension and watch which files the plugin tries to download and if there is 404 response for the request.
Access to files in template directory is forbidden by .htaccess in that directory and you shouldn't try remove it, as it is important for security.
Just make sure that form action points to...
Ok, so don't enable friendly urls, just rename ._htaccess to .htaccess. Does your site work in this case?
Rename ._htaccess to .htaccess and make sure that mod_rewrite is enabled and apache reads .htaccess files (you need hosting plan that supports these features).
I agree, but I think it is the reason not to put all websites in a single TL install. Imagine that extension works, but slows down page significantly. This may not be detected in development and...
:) That would work. In an ideal world :)
I was thinking about this scalability of TYPOlight a lot lately and I concluded that it is not "enterprise ready" (yet). The biggest problem I see is with custom module development. Imagine that...
Well, that is quite a big problem, because you need to maintain reference integrity between pages, articles and content elements. Imagine that you have page id 1 in both site A and site D. You would...