Search:

Type: Posts; User: scare

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Catalog 2

    by scare
    Replies
    37
    Views
    7,953

    Re: Catalog 2

    No, there is no frontend module yet. Backend works fine, except there are no translations and icons and so on.
  2. Replies
    1
    Views
    746

    Re: how to get output like this

    Yes, by writing your own template.
  3. Replies
    2
    Views
    1,731

    Re: Get the module ID

    $this->id ?
  4. Thread: A strange error.

    by scare
    Replies
    2
    Views
    875

    Re: A strange error.

    Is there a call stack displayed?
  5. Replies
    4
    Views
    1,156

    Re: Catalog - accss Data from two data table

    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.
  6. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    I would include code to generate the link to catalog reader template. I don't see any other solution.
  7. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    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?
  8. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    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...
  9. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    I should have read to the end of the thread before posting, I guess :)
  10. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    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,...
  11. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    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,...
  12. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    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...
  13. Replies
    17
    Views
    7,042

    Re: Start and end date for catalog item

    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...
  14. Replies
    15
    Views
    3,485

    Re: Checkbox Items Visibility in Frontend

    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...
  15. Replies
    17
    Views
    7,042

    Re: Start and end date for catalog item

    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...
  16. Replies
    17
    Views
    7,042

    Re: Start and end date for catalog item

    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...
  17. Replies
    12
    Views
    2,544

    Re: Overwrite renderField method in Catalog

    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.
  18. Re: unable to manualy upgrade Typolight (new question)

    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?
  19. Re: unable to manualy upgrade Typolight

    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.
  20. Re: How to call one class function from another class function?

    $writer = new WriteTheXML();
    $writer->writeXMLFile($parentid);
  21. Replies
    18
    Views
    3,384

    Re: Unable to install TYPOlight

    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...
  22. Replies
    18
    Views
    3,384

    Re: Unable to install TYPOlight

    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...
  23. Replies
    18
    Views
    3,384

    Re: Unable to install TYPOlight

    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 :)
  24. Re: Creating a database connection withiout using $this object

    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...
  25. Re: Creating a database connection withiout using $this object

    I would just copy flash.php and take a look at how it accesses database.
  26. Re: Unable to View Thumbnails Despite Full Permissions

    Maybe you don't have gd2 installed?
  27. Replies
    5
    Views
    4,179

    Re: HELP! Globally Change "base" url??

    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...
  28. Replies
    2
    Views
    884

    Re: TL when to create custom module?

    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...
  29. Replies
    8
    Views
    1,708

    Re: difficulty uploading image files

    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.
  30. Replies
    3
    Views
    1,111

    Re: TL when to create custom module?

    This looks like frontend module. Do you need backend module too?
  31. Re: How do I access the page id variable in FE tpl?

    you may try using


    global $objPage;
    echo $objPage->id;
  32. Replies
    10
    Views
    2,454

    Re: What would making a commerce extension require?

    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...
  33. Replies
    1
    Views
    908

    Re: ajax grid to update/add record on catalog

    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...
  34. Replies
    4
    Views
    1,155

    Re: How to integrate dlh_googlemaps with catalog?

    But you may always use google maps javascript api to add pois - read xml using XHttpRequest and process it manually.
  35. Replies
    10
    Views
    2,996

    Re: Catalog 2.0 & Modul Catalog Navigation

    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...
  36. Replies
    10
    Views
    2,505

    Re: Crazy / Dumb Feature Request?

    What version do you use? You need version 2.0, downloadable from http://code.google.com/p/typolight-catalog/ - still alpha
  37. Replies
    10
    Views
    2,505

    Re: Crazy / Dumb Feature Request?

    You need to add followig lines to system/drivers/DC_DynamicTable.php:


    if (preg_match('/^catalog(\d+)$/', $this->Input->get('do'), $matches))
    {
    ...
  38. Replies
    10
    Views
    2,505

    Re: Crazy / Dumb Feature Request?

    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...
  39. Replies
    10
    Views
    2,505

    Re: Crazy / Dumb Feature Request?

    There was a little known feature in DC_Catalog.php:


    if (preg_match('/^catalog(\d+)$/', $this->Input->get('do'), $matches))
    {
    ...
  40. Thread: Custom menu

    by scare
    Replies
    2
    Views
    859

    Re: Custom menu

    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.
  41. Re: Delete all images from filesystem folder EXCEPT a,b,c

    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...
  42. Re: Delete all images from filesystem folder EXCEPT a,b,c

    Using foreach is easiest IMHO.



    $files = scan(...);
    foreach ($files as $file)
    {
    $fileWithPath = $membersfolderpath . $file;
    if ($fileWithPath != $logo && $fileWithPath != $picture &&...
  43. Thread: layout problem

    by scare
    Replies
    12
    Views
    3,543

    Re: layout problem

    well adding
    p.more a { color: red; } to your style will do IMHO.

    Ah, too late :)
  44. Replies
    4
    Views
    1,525

    Re: PHP Code to Create and Use Thumbnails

    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...
  45. Replies
    4
    Views
    1,525

    Re: PHP Code to Create and Use Thumbnails

    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...
  46. Replies
    30
    Views
    6,957

    Re: workflow management

    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...
  47. Replies
    30
    Views
    6,957

    Re: workflow management

    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...
  48. Replies
    8
    Views
    2,288

    Re: Extension - Next Page

    Did he? I looked at the last version and it is not implemented there. Maybe in trunk?
  49. Replies
    8
    Views
    2,288

    Re: Extension - Next Page

    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}},...
  50. Replies
    14
    Views
    3,955

    Re: custom html code stripping code!

    Could you try removing .htaccess file from root directory (you need to disable friendly urls first)?
  51. Replies
    14
    Views
    3,955

    Re: custom html code stripping code!

    So could you create a page on your client's website with quicktime player?
  52. Replies
    14
    Views
    3,955

    Re: custom html code stripping code!

    Hi Dave, could you set up a test site so that we could check what might be the problem?
  53. Replies
    14
    Views
    3,955

    Re: custom html code stripping code!

    Hi Dave,

    try FireBug extension and watch which files the plugin tries to download and if there is 404 response for the request.
  54. Thread: Custom PHP forms

    by scare
    Replies
    3
    Views
    1,461

    Re: Custom PHP forms

    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...
  55. Replies
    17
    Views
    3,559

    Re: Problem with Clean URLs

    Ok, so don't enable friendly urls, just rename ._htaccess to .htaccess. Does your site work in this case?
  56. Replies
    17
    Views
    3,559

    Re: Problem with Clean URLs

    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).
  57. Replies
    18
    Views
    4,846

    Re: Enterprise scalability?

    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...
  58. Replies
    18
    Views
    4,846

    Re: Enterprise scalability?

    :) That would work. In an ideal world :)
  59. Replies
    18
    Views
    4,846

    Re: Enterprise scalability?

    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...
  60. Re: Migrating a website from one typolight installation to anoth

    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...
Results 1 to 60 of 61
Page 1 of 2 1 2