Important announcements from CouchCMS team
63 posts Page 4 of 7
Previous 1, 2, 3, 4, 5, 6, 7 Next
@Jiwa,

As the message is reporting, the system is unable to open a file named '/var/www/admin/www/site.com/includes/image/sale-maisonette/sm-532/89877685_900x675.jpg'. Please check that the file (and the containing folders) have the required permissions.

Hope it helps.
Thank you, @KK! Now everything is all right! :D
How to assign folder to cloned pages when import data with CSV Importer?

I have try the following one, but it cannot works.
Code: Select all
<cms:db_persist
   _auto_title       = '0'
   _invalidate_cache = '0'
   _masterpage       = 'artists.php'
   _mode             = 'create'

   ............
   k_page_foldertitle   = "<cms:show _k_page_foldertitle/>" 
   ............
   >

What is the right code for it?
How to assign folder to cloned pages when import data with CSV Importer?

You'll need to use the 'k_page_folder_id' parameter and set the right folder ID in it.
KK wrote:
How to assign folder to cloned pages when import data with CSV Importer?

You'll need to use the 'k_page_folder_id' parameter and set the right folder ID in it.

Thanks KK, it works. Here's what i did:

Code: Select all
<cms:db_persist
   _auto_title       = '0'
   _invalidate_cache = '0'
   _masterpage       = 'artists.php'
   _mode             = 'create'

   ............
   k_page_folder_id   = "<cms:show _k_page_folderid/>"
   ............
   >
Hi
I am having some trouble with the csv importer, and getting the error message: ERROR:Name: Required field cannot be left empty
How does the importer deal with the Name field, which is required?
I have included this code in my import file:

Code: Select all
<!-- database operation here -->
               
                    <cms:db_persist
                        _auto_title       = '0'
                        _invalidate_cache = '0'
                        _masterpage       = 'clubs.php'
                        _mode             = 'create'

                        k_page_title      = "<cms:show _page_title/>"
         
                        club      = _page_title
         name      = _name      
         club_ID          = _club_ID
                        club_URL          = _club_url
                        club_logo   = _club_logo
         club      = _Clubname
         

                    >


Do I have an error here?
Many thanks
Hi,

How does the importer deal with the Name field, which is required?

The importer works exactly the way the form in admin-panel works - namely, if the 'name' if field is left empty, it uses the 'title' field to create a unique name. If the title field is also empty, if '_auto_title' param is set to '1' it auto-generates a unique name else it throws an error.

In your code, the 'k_page_title' is being explicitly set so the name field should get populated automatically using the title.
As to then why this is not happening, one reason could be that the <cms:show _page_title/> being used could be coming up empty for some pages.

Please double check your CSV to see if this is not the case.
Thanks for your reply
My csv is fully populated, hence I'm struggling to see what I might be doing wrong here
Any suggestions much appreciated
Please PM me a few actual rows from the CSV and I'll test it.
Thanks for the file.
I put a <cms:dump /> to see exactly which variables were being set by the importer and got the following -
_Club, _Club_ID, _Club_URL, _Club_logo, _name, _Clubname

As you can see, in the list there is no '_page_title' that you are using to set the page's name.

Assuming your code is not fetching that variable from anywhere else, its absence would explain the error message.

If, however, you think the missing variable can be accounted for, PM me the exact code you are using.
Previous 1, 2, 3, 4, 5, 6, 7 Next
63 posts Page 4 of 7