Docusign embed template edit view - php

I'm trying to embed template edit view in my application. API Reference
Below is the source code to retrieve template edit view url using php client
$templatesApi = new TemplatesApi($apiClient);
# Generate the embed template edit view
$returnUrlRequest = new ReturnUrlRequest();
$returnUrlRequest->setReturnUrl('http://localhost:8080/success');
$editViewUrl = $templatesApi->createEditView($this->getAccountId(), $templateId, $returnUrlRequest)->getUrl();
& it returns below edit view url
https://demo.docusign.net/Member/StartInSession.aspx?StartConsole=1&t=3c5a3d84...&DocuEnvelope=[template_id]
But when I load the above url, it redirects to docusign home page. Where I'm expecting it to show the template edit view.
Any help appreciated. Thanks in advance

It appears there's an issue with the templateId, you need to make sure you provide the correct templateId to the API. This should look like a GUID and the URL you show here doesn't have it.

Related

Using archive-page instead of single-page improper?

I want to display all my custom post type project images on a template page, such as single-project.php, but the url doesn't display like I want it to.
It should be 'sitename/projects/' but it displays like 'sitename/projects/slug-of-post'.
Is there a way to modify the 'slug-of-post' ?
OR should I be creating an archive-projects instead to achieve that url since it does display 'sitename/project/' ? or is that wrong to use it like that?
If you want to display the images on a page through using a page template you will be able to choose the page slug as you please.
Then what you want is a page template file like this: https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use
This will have something like this in the file header:
<?php /* Template Name: Example Template */ ?>
Alternatively, yes, have an archive-projects.php to display an archive (collection of all content) of the post type.
Make sure your custom post type has an archive.
See has_archive in the documentation of register_post_type():
https://developer.wordpress.org/reference/functions/register_post_type/
This can also be changed for already registered post types (eg if a plugin registered the post type)

How to call one controller(function) view with multiple url in codeigniter via routes.

I create a controller function home/index .
calling vai url it is showing me html design.
I want to call the view of home/index via custom urls.
If I type
www.example.com/home_new // it will open view of home/index
www.example.com/home_new1 // it will open view of home/index
Also i want to save the custum urls in database so that admin can change.
Please advise how to do this via routes or another method.
Add this code to inside route.php file:
$route['home_new'] = 'home/index';
$route['home_new1'] = 'home/index';
This will solve your problem. For database it will not help you.
You can take reference from this link.

Wordpress Get URL Footer File

I need to access the footer inside a wordpress theme via a url. Ideally it would just render the footer data and nothing else, alternative suggestions welcomed though.
To add some context, the data will be fetched through the url and a script will read the markup. This data will then be cached and available through Magento where it is needed to be displayed..
Is there a url path that will display it or should I make a new page that can be called via the base-url+the-page-name???
There's nothing built in to do that. You could use the AJAX API in your theme or a plugin and accomplish it.
You hook into an action that gets sent as a URL or POST data parameter and then make a request to yoursite.com/path/to/wordpress/wp-admin/admin-ajax.php.
<?php
add_action('wp_ajax_so20495429_display_footer', 'so20495429_display_footer');
add_action('wp_ajax_nopriv_so20495429_display_footer', 'so20495429_display_footer');
function so20495429_display_footer()
{
get_footer('ajax');
}
This will work for all users, logged in or not, despite the wp-admin URL. Here is code above wrapped up in a plugin.
what you can do is make a wordpress custom page template.
If you dont know how heres a little tutorial : http://www.expand2web.com/blog/custom-page-template-wordpress/
Now you want the custom page template to only load the footer (add the html, head and body opening tags yourself)
if you create a new page with your page template seletced it will only output the footer.
Hope you can get it to work
Greetings
merijn
What about $footer_url=get_template_directory_uri().'/footer.php'; ?

url pass in the file for get a page

I am creating a site in which I would like to go to another page via a custom menu. My menu code for the views/layout/main.php is:
array('label'=>'create wireframe', 'url'=>array('wireframes/create'), 'visible'=>!Yii::app()->user->isGuest),
A user can go to the wireframe creation page, but it passes the url index.php?r=user/wireframes/create
but I only want index.php?r=/wireframes/create. How can it pass the url? Are there any additions that I missed?
I guess you can try
'url'=>array('/wireframes/create').

how to add a tag to the navigation tabs displayed in moodle profile page

I want to add a new tab to the navigation of profile page. I hope to do this by using moodle block or module. Please give me a clue to do this.
You have to hack the code in /user/tabs.php (Moodle 1.9).
Just add a new element to the $toprow array:
$toprow[] = new tabobject('extra', 'http://a_link', 'Extra');
Where I'm specifying an id, a link and a label for the new tab. Obviously, you have to add the code to manage the content of the tab (possibly using $filterselect). In the above file, this is done for all other tabs, so just use that as a template.
For the parameters of the tabobject constructor, refer to /htdocs/lib/weblib.php.
The truth is in the code.

Categories