Custom Page title changes by following the passed value
I'm trying to change the $title to be displaying by following the passed value
please note that the passed value is in integer product_id , then we can refer back to the relationship which is product.name .
As an example:
View Product Details - [passedvaluehere]
becomes,
View Product Details - Product1
this is my code:
Is there any way to hide from the id appears on the link above instead display the product name.
Solution:Jump to solution
Something like this :
```php
class ViewProduct extends ViewRecord
{
// ......
4 Replies
Please ignore the last question i've made it worked ! but i still not sure how do i modify the $title to be following the fetched product name
Solution
Something like this :
This looks like a custom page though, so you may not have access to
$this->record
... but you get the idea πThanks Bud! got it worked! @pboivin