Hello,
hopefully this is the right place to ask. I want to add an input-field, which should indicate the language, the article is written in, in the backend post options. Therefore I added the following code to the edit_post.php:
Additionally I added to the nm_get_cache_data function in the cache.php
and to the nm_cache_to_xml function in the cache.php.
When I am trying to set the data in the post options it shows me the error:
background: If the variable $lang is set to 'en' for example i am setting the tags to 'en' and only show posts with the 'en' tag on my site.
hopefully this is the right place to ask. I want to add an input-field, which should indicate the language, the article is written in, in the backend post options. Therefore I added the following code to the edit_post.php:
Code:
<label for="post-lang"><?php i18n('news_manager/POST_SLUG'); ?>:</label>
<input class="text short" id="post-lang" name="post-lang" type="text" value="<?php echo $lang; ?>" />
Additionally I added
Code:
$posts[$time]['lang'] = strval($data->lang);
and
Code:
$elem = $item->addChild('lang');
$elem->addCData($post['lang']);
When I am trying to set the data in the post options it shows me the error:
Quote:Undefined variable: langand more. Where are the variables defined? I couldnt find such a file. How could I change it to work well?
background: If the variable $lang is set to 'en' for example i am setting the tags to 'en' and only show posts with the 'en' tag on my site.