General developer forum

Course Category Add New File Upload Field

 
Picture of hitesh prajapati
Re: Course Category Add New File Upload Field
 

Hi Hittesh Ahuja,

I follow your instruction and add the code in else part after create category.

But still having same error, even i update the code error display for old function.

i already Purge all caches. Is there any thing that i need to do to remove cache ?

also what about the function to update image fields ?

where should i add code to update file field ?

see below images.

 





 
Average of ratings: -
Picture of Hittesh Ahuja
Re: Course Category Add New File Upload Field
Plugin developersTesters

It looks like your code is still cached somehow .. there is no $coursecat on line 122 so this is wrong. 


Hittesh

 
Average of ratings: -
Picture of Hittesh Ahuja
Re: Course Category Add New File Upload Field
Plugin developersTesters

could you zip me the changes so i can try it on my end. 

 
Average of ratings: -
Picture of hitesh prajapati
Re: Course Category Add New File Upload Field
 

yes sure.

here is the core (moodle 3.2) files that i was changed.

see below zip file.

Also can you please help me how to display custom block to student and admin login.

i created on custom block to display course categories only. it's display on admin login my/ section but not display on student login.

i checked the blog permission to view blog and student is added to view this block.

Picture of hitesh prajapati
Re: Course Category Add New File Upload Field
 

Hi Hittesh Ahuja,

Did you find any solution from above zip?

 
Average of ratings: -