Releases: WPoets/awesome-enterprise-2
1.3.3.0
Release 1.3.2, Includes lots of changes
We have made lots of changes.
- Added Support for content type
- Support for multiple file uploads
- You can now parse and read PDF files
- Create ASYNC request based on reactphp
Parsing PDF files
[pdf.parse file_path='/var/www/awesome.pdf' data_format='array' o.exit=t /]
[pdf.parse file_path='/var/www/awesome.pdf' data_format='json' o.exit=t /]
[pdf.parse file_path='/var/www/awesome.pdf' o.exit=t /]
Steps to register Content Types
-
Register a service in Awesome Core: Services
[services.add call_centre_def service_label='Call Centre Definition' post_type='call_centre_def' desc='Call Centre Def' service=yes/]
-
Create a module 'Main' in the above created service. Define your Content Type here.
[content_types.add ccall_centre/]
As a thumb rule, you should start the name of your Content Type with a 'c' -
Make an entry of the Content Type in Awesome Core: init
[call_centre_def.main/]
Examples of using new Async Shortcodes
Using tickets
[loop.@row template.reply.rows c.not_empty='template.reply.rows']
[env.get @row.item.service o.set='template.queue.{@row.index}.service' /]
[env.get @row.item o.merge_with='template.queue.{@row.index}.data.row' /]
[env.get app.user o.merge_with='template.queue.{@row.index}.data.user' /]
[module.get extras o.merge_with='template.queue.{@row.index}.data.extras' /]
[/loop.@row]
[async_tickets.run tickets={template.queue} app='s' payload_size='2' c.not_empty='template.reply.rows'/]
using custom URLS
[do.@test]
[str.create main='{url.site}xhr/query.php' o.set='@test.queue.{@i.index}.url' /]
[content.run o.set='@test.queue.{@i.index}.data.sql']
INSERT IGNORE INTO t_data (object_id,id)
select object_id,id from data_changes.loan_data_[template.activity /]
where id>[template.job_last_id.scalar /] order by id limit 200;
[/content.run]
[/do.@test]
[async_urls.run tickets={@test.queue} /]
Added PDF support
- Added PDF support
- Fixed PDF issue.
PDF shortcode sample.
[pdf.generate part=setup]
{
"page_orientation":"p",
"page_format":"A4",
"unicode":"TRUE",
"encoding":"UTF-8",
"pdfa":"",
"show_footer":"no",
"show_header":"no",
"author":"DevDanidhariya",
"title":"dev test",
"font_name":"freesans"
}
[/pdf.generate]
[pdf.generate part=header]
{
"font_name":"freesans",
"font_size":"15",
"items":[
{
"item_type": "cell",
"SetY":"1",
"w":"10",
"h":"0",
"text":"Testing Header WPoets",
"border":"B",
"ln":"1",
"align":"R"
},
{
"item_type": "text",
"SetY":"2",
"x":"2",
"y":"2",
"text":"Testing Text Link header",
"link":"https://www.wpoets.com"
},
{
"item_type": "cell",
"SetY":"4",
"w":"10",
"h":"0",
"text":"header cell",
"border":"B",
"ln":"1",
"align":"R"
}
]
}
[/pdf.generate]
[pdf.generate part=content]
<p>the properly formated HTML content with attributes having double quotes.</p>
[/pdf.generate]
[pdf.generate part=footer]
{
"font_name":"freesans",
"font_size":"15",
"items":[
{
"item_type": "cell",
"SetX":"6",
"w":"0",
"h":"0",
"text":"Generated By Magazinify.com | An Experiment By AmiWorks",
"border":"",
"ln":"0",
"align":"L"
}
]
}
[/pdf.generate]
[pdf.generate part=download filename='abc.pdf'][/pdf.generate]
[pdf.generate part=save dir_path='D:/laragon/www/awesome/wp-content/uploads/2017' filename='abc.pdf'][/pdf.generate]
fixed attach_to_post issue
- Fixed sideload error headling
- Change plugin name "Awesome Studio Enterprise" to "Awesome Enterprise"
Zoho insert lead issue fixed
- createRecords function code update.
- Add .gitignore file
Add Zoho notes and SEO Yoast sitemap support
- Add Zoho notes support
- Add functionality for SEO Yoast sitemap
- Add following shortcode
[zoho.crm Leads.updateNotes id="xxxxxxxxxxxxxxxxxxx" set="module.update_notes"]
{
"3876186000000329001":
{
"title":"What is Lorem Ipsum?",
"content":"Lorem Ipsum is simply dummy text of the printing and typesetting industry."
},
"3876186000000324002":
{
"title":"Why do we use it?",
"content":"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout."
}
}
[/zoho.crm]
[zoho.crm Leads.addNote id="xxxxxxxxxxxxxxxxxxx" set="module.add_note"]
{
"title":"The standard Lorem Ipsum passage, used since the 1500s",
"content":"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
}
[/zoho.crm]
Add zoho campaigns support
Add zoho campaign subscribe shortcode.
[zoho.campaigns subscribe listkey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" set="module.campaign_id"]
{
"First Name":"devidas",
"Last Name":"danidhariya",
"Contact Email":"dev@example.com"
}
[/zoho.campaigns]
Add zoho attachment support
User can allow to upload attachment file in zoho crm.
Add new shortcode
[zoho.crm Leads.uploadAttachment id="1234567890123456789" path="C:/users/user/Documents/dummy/pdf/dummy.pdf" set="module.uploadAttachment" /]
Fixed zoho attachment folde issue and setup current user in app
We change Zoho attachment folder directory. Update code for creating Zoho attachments folder and token folder. Setup current user's data in app context.
Add Zoho CRM support with API Version 2
Add functionality to support Zoho CRM using Zoho php API version 2. In this functionality, we added 14 new shortcodes. Using this shortcode user can Add, Edit, Delete leads, Contacts, Products modules.